Skip to content

Commit 6810d0e

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new method SearchLineageStreaming is added
docs: Documentation for SearchLineageStreaming API was added feat: SearchLinks can now accept multiple source and target entity references as search criteria feat: Added support for column level lineage information to be passed and returned from the Lineage service The `field` field in EntityReference allows to add column level information when creating events. This is also returned in links along with DependencyInfo that describes the type of dependency described in the link. PiperOrigin-RevId: 912099814
1 parent c264872 commit 6810d0e

3 files changed

Lines changed: 464 additions & 97 deletions

File tree

google/cloud/datacatalog/lineage/v1/BUILD.bazel

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
# * extra_protoc_file_parameters
1010
# The complete list of preserved parameters can be found in the source code.
1111

12+
# buildifier: disable=load-on-top
13+
1214
# This is an API workspace, having public visibility by default makes perfect sense.
1315
package(default_visibility = ["//visibility:public"])
1416

1517
##############################################################################
1618
# Common
1719
##############################################################################
18-
load("@rules_proto//proto:defs.bzl", "proto_library")
20+
# buildifier: disable=same-origin-load
1921
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22+
load("@rules_proto//proto:defs.bzl", "proto_library")
2023

2124
proto_library(
2225
name = "lineage_proto",
@@ -27,8 +30,10 @@ proto_library(
2730
"//google/api:annotations_proto",
2831
"//google/api:client_proto",
2932
"//google/api:field_behavior_proto",
33+
"//google/api:field_info_proto",
3034
"//google/api:resource_proto",
3135
"//google/longrunning:operations_proto",
36+
"//google/type:interval_proto",
3237
"@com_google_protobuf//:empty_proto",
3338
"@com_google_protobuf//:field_mask_proto",
3439
"@com_google_protobuf//:struct_proto",
@@ -47,6 +52,7 @@ proto_library_with_info(
4752
##############################################################################
4853
# Java
4954
##############################################################################
55+
# buildifier: disable=same-origin-load
5056
load(
5157
"@com_google_googleapis_imports//:imports.bzl",
5258
"java_gapic_assembly_gradle_pkg",
@@ -109,6 +115,7 @@ java_gapic_assembly_gradle_pkg(
109115
##############################################################################
110116
# Go
111117
##############################################################################
118+
# buildifier: disable=same-origin-load
112119
load(
113120
"@com_google_googleapis_imports//:imports.bzl",
114121
"go_gapic_assembly_pkg",
@@ -123,6 +130,7 @@ go_grpc_library(
123130
deps = [
124131
"//google/api:annotations_go_proto",
125132
"//google/longrunning:longrunning_go_proto",
133+
"//google/type:interval_go_proto",
126134
],
127135
)
128136

@@ -160,6 +168,7 @@ go_gapic_assembly_pkg(
160168
##############################################################################
161169
# Python
162170
##############################################################################
171+
# buildifier: disable=same-origin-load
163172
load(
164173
"@com_google_googleapis_imports//:imports.bzl",
165174
"py_gapic_assembly_pkg",
@@ -171,26 +180,26 @@ py_gapic_library(
171180
name = "lineage_py_gapic",
172181
srcs = [":lineage_proto"],
173182
grpc_service_config = "lineage_grpc_service_config.json",
183+
opt_args = [
184+
"python-gapic-name=datacatalog_lineage",
185+
"python-gapic-namespace=google.cloud",
186+
],
174187
rest_numeric_enums = True,
175188
service_yaml = "datalineage_v1.yaml",
176189
transport = "grpc+rest",
177190
deps = [
178191
],
179-
opt_args = [
180-
"python-gapic-namespace=google.cloud",
181-
"python-gapic-name=datacatalog_lineage",
182-
],
183192
)
184193

185-
py_test(
186-
name = "lineage_py_gapic_test",
187-
srcs = [
188-
"lineage_py_gapic_pytest.py",
189-
"lineage_py_gapic_test.py",
190-
],
191-
legacy_create_init = False,
192-
deps = [":lineage_py_gapic"],
193-
)
194+
# py_test(
195+
# name = "lineage_py_gapic_test",
196+
# srcs = [
197+
# "lineage_py_gapic_pytest.py",
198+
# "lineage_py_gapic_test.py",
199+
# ],
200+
# legacy_create_init = False,
201+
# deps = [":lineage_py_gapic"],
202+
# )
194203

195204
# Open Source Packages
196205
py_gapic_assembly_pkg(
@@ -203,6 +212,7 @@ py_gapic_assembly_pkg(
203212
##############################################################################
204213
# PHP
205214
##############################################################################
215+
# buildifier: disable=same-origin-load
206216
load(
207217
"@com_google_googleapis_imports//:imports.bzl",
208218
"php_gapic_assembly_pkg",
@@ -223,7 +233,9 @@ php_gapic_library(
223233
rest_numeric_enums = False,
224234
service_yaml = "datalineage_v1.yaml",
225235
transport = "grpc+rest",
226-
deps = [":lineage_php_proto"],
236+
deps = [
237+
":lineage_php_proto",
238+
],
227239
)
228240

229241
# Open Source Packages
@@ -238,6 +250,7 @@ php_gapic_assembly_pkg(
238250
##############################################################################
239251
# Node.js
240252
##############################################################################
253+
# buildifier: disable=same-origin-load
241254
load(
242255
"@com_google_googleapis_imports//:imports.bzl",
243256
"nodejs_gapic_assembly_pkg",
@@ -268,6 +281,7 @@ nodejs_gapic_assembly_pkg(
268281
##############################################################################
269282
# Ruby
270283
##############################################################################
284+
# buildifier: disable=same-origin-load
271285
load(
272286
"@com_google_googleapis_imports//:imports.bzl",
273287
"ruby_cloud_gapic_library",
@@ -321,6 +335,7 @@ ruby_gapic_assembly_pkg(
321335
##############################################################################
322336
# C#
323337
##############################################################################
338+
# buildifier: disable=same-origin-load
324339
load(
325340
"@com_google_googleapis_imports//:imports.bzl",
326341
"csharp_gapic_assembly_pkg",
@@ -367,6 +382,7 @@ csharp_gapic_assembly_pkg(
367382
##############################################################################
368383
# C++
369384
##############################################################################
385+
# buildifier: disable=same-origin-load
370386
load(
371387
"@com_google_googleapis_imports//:imports.bzl",
372388
"cc_grpc_library",

google/cloud/datacatalog/lineage/v1/datalineage_v1.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,62 @@ authentication:
3333
oauth:
3434
canonical_scopes: |-
3535
https://www.googleapis.com/auth/cloud-platform
36+
37+
publishing:
38+
method_settings:
39+
- selector: google.cloud.datacatalog.lineage.v1.Lineage.ProcessOpenLineageRunEvent
40+
auto_populated_fields:
41+
- request_id
42+
- selector: google.cloud.datacatalog.lineage.v1.Lineage.CreateProcess
43+
auto_populated_fields:
44+
- request_id
45+
- selector: google.cloud.datacatalog.lineage.v1.Lineage.UpdateProcess
46+
auto_populated_fields:
47+
- request_id
48+
- selector: google.cloud.datacatalog.lineage.v1.Lineage.CreateRun
49+
auto_populated_fields:
50+
- request_id
51+
- selector: google.cloud.datacatalog.lineage.v1.Lineage.CreateLineageEvent
52+
auto_populated_fields:
53+
- request_id
54+
new_issue_uri: https://issuetracker.google.com/issues/new?component=1530027
55+
documentation_uri: https://cloud.google.com/dataplex/docs/about-data-lineage
56+
api_short_name: datalineage
57+
github_label: 'api: datalineage'
58+
doc_tag_prefix: datalineage
59+
organization: CLOUD
60+
library_settings:
61+
- version: google.cloud.datacatalog.lineage.v1
62+
launch_stage: GA
63+
java_settings:
64+
common:
65+
destinations:
66+
- PACKAGE_MANAGER
67+
cpp_settings:
68+
common:
69+
destinations:
70+
- PACKAGE_MANAGER
71+
php_settings:
72+
common:
73+
destinations:
74+
- PACKAGE_MANAGER
75+
python_settings:
76+
common:
77+
destinations:
78+
- PACKAGE_MANAGER
79+
node_settings:
80+
common:
81+
destinations:
82+
- PACKAGE_MANAGER
83+
dotnet_settings:
84+
common:
85+
destinations:
86+
- PACKAGE_MANAGER
87+
ruby_settings:
88+
common:
89+
destinations:
90+
- PACKAGE_MANAGER
91+
go_settings:
92+
common:
93+
destinations:
94+
- PACKAGE_MANAGER

0 commit comments

Comments
 (0)