google-cloud-data_catalog-lineage-v1 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/client.rb +71 -35
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/operations.rb +25 -20
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/client.rb +71 -35
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/operations.rb +54 -42
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/service_stub.rb +150 -104
- data/lib/google/cloud/data_catalog/lineage/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +74 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
@@ -36,6 +36,9 @@ module Google
|
|
36
36
|
# example, when table data is based on data from multiple tables.
|
37
37
|
#
|
38
38
|
class Client
|
39
|
+
# @private
|
40
|
+
API_VERSION = ""
|
41
|
+
|
39
42
|
# @private
|
40
43
|
DEFAULT_ENDPOINT_TEMPLATE = "datalineage.$UNIVERSE_DOMAIN$"
|
41
44
|
|
@@ -163,8 +166,19 @@ module Google
|
|
163
166
|
endpoint: @config.endpoint,
|
164
167
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
165
168
|
universe_domain: @config.universe_domain,
|
166
|
-
credentials: credentials
|
169
|
+
credentials: credentials,
|
170
|
+
logger: @config.logger
|
167
171
|
)
|
172
|
+
|
173
|
+
@lineage_stub.logger(stub: true)&.info do |entry|
|
174
|
+
entry.set_system_name
|
175
|
+
entry.set_service
|
176
|
+
entry.message = "Created client for #{entry.service}"
|
177
|
+
entry.set_credentials_fields credentials
|
178
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
179
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
180
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
181
|
+
end
|
168
182
|
end
|
169
183
|
|
170
184
|
##
|
@@ -174,6 +188,15 @@ module Google
|
|
174
188
|
#
|
175
189
|
attr_reader :operations_client
|
176
190
|
|
191
|
+
##
|
192
|
+
# The logger used for request/response debug logging.
|
193
|
+
#
|
194
|
+
# @return [Logger]
|
195
|
+
#
|
196
|
+
def logger
|
197
|
+
@lineage_stub.logger
|
198
|
+
end
|
199
|
+
|
177
200
|
# Service calls
|
178
201
|
|
179
202
|
##
|
@@ -241,12 +264,13 @@ module Google
|
|
241
264
|
# Customize the options with defaults
|
242
265
|
call_metadata = @config.rpcs.process_open_lineage_run_event.metadata.to_h
|
243
266
|
|
244
|
-
# Set x-goog-api-client
|
267
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
245
268
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
246
269
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
247
270
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
248
271
|
transports_version_send: [:rest]
|
249
272
|
|
273
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
250
274
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
251
275
|
|
252
276
|
options.apply_defaults timeout: @config.rpcs.process_open_lineage_run_event.timeout,
|
@@ -259,7 +283,6 @@ module Google
|
|
259
283
|
|
260
284
|
@lineage_stub.process_open_lineage_run_event request, options do |result, operation|
|
261
285
|
yield result, operation if block_given?
|
262
|
-
return result
|
263
286
|
end
|
264
287
|
rescue ::Gapic::Rest::Error => e
|
265
288
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -326,12 +349,13 @@ module Google
|
|
326
349
|
# Customize the options with defaults
|
327
350
|
call_metadata = @config.rpcs.create_process.metadata.to_h
|
328
351
|
|
329
|
-
# Set x-goog-api-client
|
352
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
330
353
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
331
354
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
332
355
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
333
356
|
transports_version_send: [:rest]
|
334
357
|
|
358
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
335
359
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
336
360
|
|
337
361
|
options.apply_defaults timeout: @config.rpcs.create_process.timeout,
|
@@ -344,7 +368,6 @@ module Google
|
|
344
368
|
|
345
369
|
@lineage_stub.create_process request, options do |result, operation|
|
346
370
|
yield result, operation if block_given?
|
347
|
-
return result
|
348
371
|
end
|
349
372
|
rescue ::Gapic::Rest::Error => e
|
350
373
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -411,12 +434,13 @@ module Google
|
|
411
434
|
# Customize the options with defaults
|
412
435
|
call_metadata = @config.rpcs.update_process.metadata.to_h
|
413
436
|
|
414
|
-
# Set x-goog-api-client
|
437
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
415
438
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
416
439
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
417
440
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
418
441
|
transports_version_send: [:rest]
|
419
442
|
|
443
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
420
444
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
421
445
|
|
422
446
|
options.apply_defaults timeout: @config.rpcs.update_process.timeout,
|
@@ -429,7 +453,6 @@ module Google
|
|
429
453
|
|
430
454
|
@lineage_stub.update_process request, options do |result, operation|
|
431
455
|
yield result, operation if block_given?
|
432
|
-
return result
|
433
456
|
end
|
434
457
|
rescue ::Gapic::Rest::Error => e
|
435
458
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -489,12 +512,13 @@ module Google
|
|
489
512
|
# Customize the options with defaults
|
490
513
|
call_metadata = @config.rpcs.get_process.metadata.to_h
|
491
514
|
|
492
|
-
# Set x-goog-api-client
|
515
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
493
516
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
494
517
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
495
518
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
496
519
|
transports_version_send: [:rest]
|
497
520
|
|
521
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
498
522
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
499
523
|
|
500
524
|
options.apply_defaults timeout: @config.rpcs.get_process.timeout,
|
@@ -507,7 +531,6 @@ module Google
|
|
507
531
|
|
508
532
|
@lineage_stub.get_process request, options do |result, operation|
|
509
533
|
yield result, operation if block_given?
|
510
|
-
return result
|
511
534
|
end
|
512
535
|
rescue ::Gapic::Rest::Error => e
|
513
536
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -584,12 +607,13 @@ module Google
|
|
584
607
|
# Customize the options with defaults
|
585
608
|
call_metadata = @config.rpcs.list_processes.metadata.to_h
|
586
609
|
|
587
|
-
# Set x-goog-api-client
|
610
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
588
611
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
589
612
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
590
613
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
591
614
|
transports_version_send: [:rest]
|
592
615
|
|
616
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
593
617
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
594
618
|
|
595
619
|
options.apply_defaults timeout: @config.rpcs.list_processes.timeout,
|
@@ -603,7 +627,7 @@ module Google
|
|
603
627
|
@lineage_stub.list_processes request, options do |result, operation|
|
604
628
|
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :list_processes, "processes", request, result, options
|
605
629
|
yield result, operation if block_given?
|
606
|
-
|
630
|
+
throw :response, result
|
607
631
|
end
|
608
632
|
rescue ::Gapic::Rest::Error => e
|
609
633
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -673,12 +697,13 @@ module Google
|
|
673
697
|
# Customize the options with defaults
|
674
698
|
call_metadata = @config.rpcs.delete_process.metadata.to_h
|
675
699
|
|
676
|
-
# Set x-goog-api-client
|
700
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
677
701
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
678
702
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
679
703
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
680
704
|
transports_version_send: [:rest]
|
681
705
|
|
706
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
682
707
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
683
708
|
|
684
709
|
options.apply_defaults timeout: @config.rpcs.delete_process.timeout,
|
@@ -692,7 +717,7 @@ module Google
|
|
692
717
|
@lineage_stub.delete_process request, options do |result, operation|
|
693
718
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
694
719
|
yield result, operation if block_given?
|
695
|
-
|
720
|
+
throw :response, 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.create_run.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::DataCatalog::Lineage::V1::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.create_run.timeout,
|
@@ -776,7 +802,6 @@ module Google
|
|
776
802
|
|
777
803
|
@lineage_stub.create_run 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)
|
@@ -846,12 +871,13 @@ module Google
|
|
846
871
|
# Customize the options with defaults
|
847
872
|
call_metadata = @config.rpcs.update_run.metadata.to_h
|
848
873
|
|
849
|
-
# Set x-goog-api-client
|
874
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
850
875
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
851
876
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
852
877
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
853
878
|
transports_version_send: [:rest]
|
854
879
|
|
880
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
855
881
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
856
882
|
|
857
883
|
options.apply_defaults timeout: @config.rpcs.update_run.timeout,
|
@@ -864,7 +890,6 @@ module Google
|
|
864
890
|
|
865
891
|
@lineage_stub.update_run request, options do |result, operation|
|
866
892
|
yield result, operation if block_given?
|
867
|
-
return result
|
868
893
|
end
|
869
894
|
rescue ::Gapic::Rest::Error => e
|
870
895
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -924,12 +949,13 @@ module Google
|
|
924
949
|
# Customize the options with defaults
|
925
950
|
call_metadata = @config.rpcs.get_run.metadata.to_h
|
926
951
|
|
927
|
-
# Set x-goog-api-client
|
952
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
928
953
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
929
954
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
930
955
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
931
956
|
transports_version_send: [:rest]
|
932
957
|
|
958
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
933
959
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
934
960
|
|
935
961
|
options.apply_defaults timeout: @config.rpcs.get_run.timeout,
|
@@ -942,7 +968,6 @@ module Google
|
|
942
968
|
|
943
969
|
@lineage_stub.get_run request, options do |result, operation|
|
944
970
|
yield result, operation if block_given?
|
945
|
-
return result
|
946
971
|
end
|
947
972
|
rescue ::Gapic::Rest::Error => e
|
948
973
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1018,12 +1043,13 @@ module Google
|
|
1018
1043
|
# Customize the options with defaults
|
1019
1044
|
call_metadata = @config.rpcs.list_runs.metadata.to_h
|
1020
1045
|
|
1021
|
-
# Set x-goog-api-client
|
1046
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1022
1047
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1023
1048
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1024
1049
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1025
1050
|
transports_version_send: [:rest]
|
1026
1051
|
|
1052
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1027
1053
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1028
1054
|
|
1029
1055
|
options.apply_defaults timeout: @config.rpcs.list_runs.timeout,
|
@@ -1037,7 +1063,7 @@ module Google
|
|
1037
1063
|
@lineage_stub.list_runs request, options do |result, operation|
|
1038
1064
|
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :list_runs, "runs", request, result, options
|
1039
1065
|
yield result, operation if block_given?
|
1040
|
-
|
1066
|
+
throw :response, result
|
1041
1067
|
end
|
1042
1068
|
rescue ::Gapic::Rest::Error => e
|
1043
1069
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1107,12 +1133,13 @@ module Google
|
|
1107
1133
|
# Customize the options with defaults
|
1108
1134
|
call_metadata = @config.rpcs.delete_run.metadata.to_h
|
1109
1135
|
|
1110
|
-
# Set x-goog-api-client
|
1136
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1111
1137
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1112
1138
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1113
1139
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1114
1140
|
transports_version_send: [:rest]
|
1115
1141
|
|
1142
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1116
1143
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1117
1144
|
|
1118
1145
|
options.apply_defaults timeout: @config.rpcs.delete_run.timeout,
|
@@ -1126,7 +1153,7 @@ module Google
|
|
1126
1153
|
@lineage_stub.delete_run request, options do |result, operation|
|
1127
1154
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1128
1155
|
yield result, operation if block_given?
|
1129
|
-
|
1156
|
+
throw :response, result
|
1130
1157
|
end
|
1131
1158
|
rescue ::Gapic::Rest::Error => e
|
1132
1159
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1192,12 +1219,13 @@ module Google
|
|
1192
1219
|
# Customize the options with defaults
|
1193
1220
|
call_metadata = @config.rpcs.create_lineage_event.metadata.to_h
|
1194
1221
|
|
1195
|
-
# Set x-goog-api-client
|
1222
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1196
1223
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1197
1224
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1198
1225
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1199
1226
|
transports_version_send: [:rest]
|
1200
1227
|
|
1228
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1201
1229
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1202
1230
|
|
1203
1231
|
options.apply_defaults timeout: @config.rpcs.create_lineage_event.timeout,
|
@@ -1210,7 +1238,6 @@ module Google
|
|
1210
1238
|
|
1211
1239
|
@lineage_stub.create_lineage_event request, options do |result, operation|
|
1212
1240
|
yield result, operation if block_given?
|
1213
|
-
return result
|
1214
1241
|
end
|
1215
1242
|
rescue ::Gapic::Rest::Error => e
|
1216
1243
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1270,12 +1297,13 @@ module Google
|
|
1270
1297
|
# Customize the options with defaults
|
1271
1298
|
call_metadata = @config.rpcs.get_lineage_event.metadata.to_h
|
1272
1299
|
|
1273
|
-
# Set x-goog-api-client
|
1300
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1274
1301
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1275
1302
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1276
1303
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1277
1304
|
transports_version_send: [:rest]
|
1278
1305
|
|
1306
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1279
1307
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1280
1308
|
|
1281
1309
|
options.apply_defaults timeout: @config.rpcs.get_lineage_event.timeout,
|
@@ -1288,7 +1316,6 @@ module Google
|
|
1288
1316
|
|
1289
1317
|
@lineage_stub.get_lineage_event request, options do |result, operation|
|
1290
1318
|
yield result, operation if block_given?
|
1291
|
-
return result
|
1292
1319
|
end
|
1293
1320
|
rescue ::Gapic::Rest::Error => e
|
1294
1321
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1366,12 +1393,13 @@ module Google
|
|
1366
1393
|
# Customize the options with defaults
|
1367
1394
|
call_metadata = @config.rpcs.list_lineage_events.metadata.to_h
|
1368
1395
|
|
1369
|
-
# Set x-goog-api-client
|
1396
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1370
1397
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1371
1398
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1372
1399
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1373
1400
|
transports_version_send: [:rest]
|
1374
1401
|
|
1402
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1375
1403
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1376
1404
|
|
1377
1405
|
options.apply_defaults timeout: @config.rpcs.list_lineage_events.timeout,
|
@@ -1385,7 +1413,7 @@ module Google
|
|
1385
1413
|
@lineage_stub.list_lineage_events request, options do |result, operation|
|
1386
1414
|
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :list_lineage_events, "lineage_events", request, result, options
|
1387
1415
|
yield result, operation if block_given?
|
1388
|
-
|
1416
|
+
throw :response, result
|
1389
1417
|
end
|
1390
1418
|
rescue ::Gapic::Rest::Error => e
|
1391
1419
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1448,12 +1476,13 @@ module Google
|
|
1448
1476
|
# Customize the options with defaults
|
1449
1477
|
call_metadata = @config.rpcs.delete_lineage_event.metadata.to_h
|
1450
1478
|
|
1451
|
-
# Set x-goog-api-client
|
1479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1452
1480
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1453
1481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1454
1482
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1455
1483
|
transports_version_send: [:rest]
|
1456
1484
|
|
1485
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1457
1486
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1458
1487
|
|
1459
1488
|
options.apply_defaults timeout: @config.rpcs.delete_lineage_event.timeout,
|
@@ -1466,7 +1495,6 @@ module Google
|
|
1466
1495
|
|
1467
1496
|
@lineage_stub.delete_lineage_event request, options do |result, operation|
|
1468
1497
|
yield result, operation if block_given?
|
1469
|
-
return result
|
1470
1498
|
end
|
1471
1499
|
rescue ::Gapic::Rest::Error => e
|
1472
1500
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1557,12 +1585,13 @@ module Google
|
|
1557
1585
|
# Customize the options with defaults
|
1558
1586
|
call_metadata = @config.rpcs.search_links.metadata.to_h
|
1559
1587
|
|
1560
|
-
# Set x-goog-api-client
|
1588
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1561
1589
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1562
1590
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1563
1591
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1564
1592
|
transports_version_send: [:rest]
|
1565
1593
|
|
1594
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1566
1595
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1567
1596
|
|
1568
1597
|
options.apply_defaults timeout: @config.rpcs.search_links.timeout,
|
@@ -1576,7 +1605,7 @@ module Google
|
|
1576
1605
|
@lineage_stub.search_links request, options do |result, operation|
|
1577
1606
|
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :search_links, "links", request, result, options
|
1578
1607
|
yield result, operation if block_given?
|
1579
|
-
|
1608
|
+
throw :response, result
|
1580
1609
|
end
|
1581
1610
|
rescue ::Gapic::Rest::Error => e
|
1582
1611
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1671,12 +1700,13 @@ module Google
|
|
1671
1700
|
# Customize the options with defaults
|
1672
1701
|
call_metadata = @config.rpcs.batch_search_link_processes.metadata.to_h
|
1673
1702
|
|
1674
|
-
# Set x-goog-api-client
|
1703
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1675
1704
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1676
1705
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1677
1706
|
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1678
1707
|
transports_version_send: [:rest]
|
1679
1708
|
|
1709
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1680
1710
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1681
1711
|
|
1682
1712
|
options.apply_defaults timeout: @config.rpcs.batch_search_link_processes.timeout,
|
@@ -1690,7 +1720,7 @@ module Google
|
|
1690
1720
|
@lineage_stub.batch_search_link_processes request, options do |result, operation|
|
1691
1721
|
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :batch_search_link_processes, "process_links", request, result, options
|
1692
1722
|
yield result, operation if block_given?
|
1693
|
-
|
1723
|
+
throw :response, result
|
1694
1724
|
end
|
1695
1725
|
rescue ::Gapic::Rest::Error => e
|
1696
1726
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1770,6 +1800,11 @@ module Google
|
|
1770
1800
|
# default endpoint URL. The default value of nil uses the environment
|
1771
1801
|
# universe (usually the default "googleapis.com" universe).
|
1772
1802
|
# @return [::String,nil]
|
1803
|
+
# @!attribute [rw] logger
|
1804
|
+
# A custom logger to use for request/response debug logging, or the value
|
1805
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1806
|
+
# explicitly disable logging.
|
1807
|
+
# @return [::Logger,:default,nil]
|
1773
1808
|
#
|
1774
1809
|
class Configuration
|
1775
1810
|
extend ::Gapic::Config
|
@@ -1791,6 +1826,7 @@ module Google
|
|
1791
1826
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1792
1827
|
config_attr :quota_project, nil, ::String, nil
|
1793
1828
|
config_attr :universe_domain, nil, ::String, nil
|
1829
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1794
1830
|
|
1795
1831
|
# @private
|
1796
1832
|
def initialize parent_config = nil
|