google-cloud-data_catalog-lineage-v1 0.14.0 → 0.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9371857e11a2cc35a168468d863ac9aadbebd7dfb4d65abc6af765f114b693ee
4
- data.tar.gz: 5346372510a64a8c86ee0fed14c221898d98deb46de9081ed08a76f98179c1e9
3
+ metadata.gz: c63150aeb7fe8d673b81f0ea32c690dfb8a66abf4da8b454c9fdffa67f93eff9
4
+ data.tar.gz: 70387ed77421a49a9b854076700ec191acb8a1474e622123ca6760e453e92f8c
5
5
  SHA512:
6
- metadata.gz: f78e2205e9023629976178d948242864873c97a449fc9c2ecaa987c2ee8923efe9d255d115b24da985c132eec97da15e50202cc76519ebcc0ea2ea0230f67282
7
- data.tar.gz: b10fd8b456f0ca53bc9d300a4d4964c1cd96d2758a9c8ec77c230142d51ad5c72006cb94353b736f0802fff5460b8e9e21497df3c5b51764111bd6a07503128d
6
+ metadata.gz: e4d724a56f8aec9da6af1034508de067dde963e4cdb8861d9f707e161e20a816d04733cb34db5febaf2cde032a71a9b982d339082b48a7987af4551069c3a0ba
7
+ data.tar.gz: '086ab1a5e6ded6d7ffb6985e387d37218e375b93d99452b2c980287fe886795e1d25fa03c2628356bdce24c7b2fffcd329f0ae408f5f3de942ecebca50cbf13f'
@@ -234,9 +234,9 @@ module Google
234
234
  # Required. OpenLineage message following OpenLineage format:
235
235
  # https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json
236
236
  # @param request_id [::String]
237
- # A unique identifier for this request. Restricted to 36 ASCII characters.
238
- # A random UUID is recommended. This request is idempotent only if a
239
- # `request_id` is provided.
237
+ # Optional. A unique identifier for this request. Restricted to 36 ASCII
238
+ # characters. A random UUID is recommended. This request is idempotent only
239
+ # if a `request_id` is provided.
240
240
  #
241
241
  # @yield [response, operation] Access the result along with the RPC operation
242
242
  # @yieldparam response [::Google::Cloud::DataCatalog::Lineage::V1::ProcessOpenLineageRunEventResponse]
@@ -326,9 +326,9 @@ module Google
326
326
  # @param process [::Google::Cloud::DataCatalog::Lineage::V1::Process, ::Hash]
327
327
  # Required. The process to create.
328
328
  # @param request_id [::String]
329
- # A unique identifier for this request. Restricted to 36 ASCII characters.
330
- # A random UUID is recommended. This request is idempotent only if a
331
- # `request_id` is provided.
329
+ # Optional. A unique identifier for this request. Restricted to 36 ASCII
330
+ # characters. A random UUID is recommended. This request is idempotent only
331
+ # if a `request_id` is provided.
332
332
  #
333
333
  # @yield [response, operation] Access the result along with the RPC operation
334
334
  # @yieldparam response [::Google::Cloud::DataCatalog::Lineage::V1::Process]
@@ -407,7 +407,7 @@ module Google
407
407
  # @param options [::Gapic::CallOptions, ::Hash]
408
408
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
409
409
  #
410
- # @overload update_process(process: nil, update_mask: nil, allow_missing: nil)
410
+ # @overload update_process(process: nil, update_mask: nil, allow_missing: nil, request_id: nil)
411
411
  # Pass arguments to `update_process` via keyword arguments. Note that at
412
412
  # least one keyword argument is required. To specify no parameters, or to keep all
413
413
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -417,10 +417,15 @@ module Google
417
417
  #
418
418
  # The process's `name` field is used to identify the process to update.
419
419
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
420
- # The list of fields to update. Currently not used. The whole message is
421
- # updated.
420
+ # Optional. The list of fields to update. Currently not used. The whole
421
+ # message is updated.
422
422
  # @param allow_missing [::Boolean]
423
- # If set to true and the process is not found, the request inserts it.
423
+ # Optional. If set to true and the process is not found, the request inserts
424
+ # it.
425
+ # @param request_id [::String]
426
+ # Optional. A unique identifier for this request. Restricted to 36 ASCII
427
+ # characters. A random UUID is recommended. This request is idempotent only
428
+ # if a `request_id` is provided.
424
429
  #
425
430
  # @yield [response, operation] Access the result along with the RPC operation
426
431
  # @yieldparam response [::Google::Cloud::DataCatalog::Lineage::V1::Process]
@@ -594,13 +599,13 @@ module Google
594
599
  # Required. The name of the project and its location that owns this
595
600
  # collection of processes.
596
601
  # @param page_size [::Integer]
597
- # The maximum number of processes to return. The service may return
602
+ # Optional. The maximum number of processes to return. The service may return
598
603
  # fewer than this value. If unspecified, at most 50 processes are
599
604
  # returned. The maximum value is 100; values greater than 100 are cut to
600
605
  # 100.
601
606
  # @param page_token [::String]
602
- # The page token received from a previous `ListProcesses` call. Specify
603
- # it to get the next page.
607
+ # Optional. The page token received from a previous `ListProcesses` call.
608
+ # Specify it to get the next page.
604
609
  #
605
610
  # When paginating, all other parameters specified in this call must
606
611
  # match the parameters of the call that provided the page token.
@@ -696,7 +701,7 @@ module Google
696
701
  # @param name [::String]
697
702
  # Required. The name of the process to delete.
698
703
  # @param allow_missing [::Boolean]
699
- # If set to true and the process is not found, the request
704
+ # Optional. If set to true and the process is not found, the request
700
705
  # succeeds but the server doesn't perform any actions.
701
706
  #
702
707
  # @yield [response, operation] Access the result along with the RPC operation
@@ -795,9 +800,9 @@ module Google
795
800
  # @param run [::Google::Cloud::DataCatalog::Lineage::V1::Run, ::Hash]
796
801
  # Required. The run to create.
797
802
  # @param request_id [::String]
798
- # A unique identifier for this request. Restricted to 36 ASCII characters.
799
- # A random UUID is recommended. This request is idempotent only if a
800
- # `request_id` is provided.
803
+ # Optional. A unique identifier for this request. Restricted to 36 ASCII
804
+ # characters. A random UUID is recommended. This request is idempotent only
805
+ # if a `request_id` is provided.
801
806
  #
802
807
  # @yield [response, operation] Access the result along with the RPC operation
803
808
  # @yieldparam response [::Google::Cloud::DataCatalog::Lineage::V1::Run]
@@ -889,10 +894,10 @@ module Google
889
894
  # Format:
890
895
  # `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
891
896
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
892
- # The list of fields to update. Currently not used. The whole message is
893
- # updated.
897
+ # Optional. The list of fields to update. Currently not used. The whole
898
+ # message is updated.
894
899
  # @param allow_missing [::Boolean]
895
- # If set to true and the run is not found, the request creates it.
900
+ # Optional. If set to true and the run is not found, the request creates it.
896
901
  #
897
902
  # @yield [response, operation] Access the result along with the RPC operation
898
903
  # @yieldparam response [::Google::Cloud::DataCatalog::Lineage::V1::Run]
@@ -1065,12 +1070,12 @@ module Google
1065
1070
  # @param parent [::String]
1066
1071
  # Required. The name of process that owns this collection of runs.
1067
1072
  # @param page_size [::Integer]
1068
- # The maximum number of runs to return. The service may return
1073
+ # Optional. The maximum number of runs to return. The service may return
1069
1074
  # fewer than this value. If unspecified, at most 50 runs are
1070
1075
  # returned. The maximum value is 100; values greater than 100 are cut to
1071
1076
  # 100.
1072
1077
  # @param page_token [::String]
1073
- # The page token received from a previous `ListRuns` call. Specify
1078
+ # Optional. The page token received from a previous `ListRuns` call. Specify
1074
1079
  # it to get the next page.
1075
1080
  #
1076
1081
  # When paginating, all other parameters specified in this call must
@@ -1167,7 +1172,7 @@ module Google
1167
1172
  # @param name [::String]
1168
1173
  # Required. The name of the run to delete.
1169
1174
  # @param allow_missing [::Boolean]
1170
- # If set to true and the run is not found, the request
1175
+ # Optional. If set to true and the run is not found, the request
1171
1176
  # succeeds but the server doesn't perform any actions.
1172
1177
  #
1173
1178
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1266,9 +1271,9 @@ module Google
1266
1271
  # @param lineage_event [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent, ::Hash]
1267
1272
  # Required. The lineage event to create.
1268
1273
  # @param request_id [::String]
1269
- # A unique identifier for this request. Restricted to 36 ASCII characters.
1270
- # A random UUID is recommended. This request is idempotent only if a
1271
- # `request_id` is provided.
1274
+ # Optional. A unique identifier for this request. Restricted to 36 ASCII
1275
+ # characters. A random UUID is recommended. This request is idempotent only
1276
+ # if a `request_id` is provided.
1272
1277
  #
1273
1278
  # @yield [response, operation] Access the result along with the RPC operation
1274
1279
  # @yieldparam response [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent]
@@ -1442,14 +1447,14 @@ module Google
1442
1447
  # Required. The name of the run that owns the collection of lineage events to
1443
1448
  # get.
1444
1449
  # @param page_size [::Integer]
1445
- # The maximum number of lineage events to return.
1450
+ # Optional. The maximum number of lineage events to return.
1446
1451
  #
1447
1452
  # The service may return fewer events than this value.
1448
1453
  # If unspecified, at most 50 events are returned. The maximum value is 100;
1449
1454
  # values greater than 100 are cut to 100.
1450
1455
  # @param page_token [::String]
1451
- # The page token received from a previous `ListLineageEvents` call. Specify
1452
- # it to get the next page.
1456
+ # Optional. The page token received from a previous `ListLineageEvents` call.
1457
+ # Specify it to get the next page.
1453
1458
  #
1454
1459
  # When paginating, all other parameters specified in this call must
1455
1460
  # match the parameters of the call that provided the page token.
@@ -1545,7 +1550,7 @@ module Google
1545
1550
  # @param name [::String]
1546
1551
  # Required. The name of the lineage event to delete.
1547
1552
  # @param allow_missing [::Boolean]
1548
- # If set to true and the lineage event is not found, the request
1553
+ # Optional. If set to true and the lineage event is not found, the request
1549
1554
  # succeeds but the server doesn't perform any actions.
1550
1555
  #
1551
1556
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1633,7 +1638,7 @@ module Google
1633
1638
  # @param options [::Gapic::CallOptions, ::Hash]
1634
1639
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1635
1640
  #
1636
- # @overload search_links(parent: nil, source: nil, target: nil, page_size: nil, page_token: nil)
1641
+ # @overload search_links(parent: nil, source: nil, target: nil, sources: nil, targets: nil, page_size: nil, page_token: nil)
1637
1642
  # Pass arguments to `search_links` via keyword arguments. Note that at
1638
1643
  # least one keyword argument is required. To specify no parameters, or to keep all
1639
1644
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1644,12 +1649,32 @@ module Google
1644
1649
  # Optional. Send asset information in the **source** field to retrieve all
1645
1650
  # links that lead from the specified asset to downstream assets.
1646
1651
  #
1647
- # Note: The following parameters are mutually exclusive: `source`, `target`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
1652
+ # Note: The following parameters are mutually exclusive: `source`, `target`, `sources`, `targets`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
1648
1653
  # @param target [::Google::Cloud::DataCatalog::Lineage::V1::EntityReference, ::Hash]
1649
1654
  # Optional. Send asset information in the **target** field to retrieve all
1650
1655
  # links that lead from upstream assets to the specified asset.
1651
1656
  #
1652
- # Note: The following parameters are mutually exclusive: `target`, `source`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
1657
+ # Note: The following parameters are mutually exclusive: `target`, `source`, `sources`, `targets`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
1658
+ # @param sources [::Google::Cloud::DataCatalog::Lineage::V1::MultipleEntityReference, ::Hash]
1659
+ # Optional. Send a list of asset information in the **sources** field to
1660
+ # retrieve all links that lead from the specified assets to downstream
1661
+ # assets. This field is similar to the `source`
1662
+ # {::Google::Cloud::DataCatalog::Lineage::V1::SearchLinksRequest#source source}
1663
+ # field but allows providing multiple entities.
1664
+ # All entities within the `MultipleEntityReference` must have the same
1665
+ # `fully_qualified_name`.
1666
+ #
1667
+ # Note: The following parameters are mutually exclusive: `sources`, `source`, `target`, `targets`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
1668
+ # @param targets [::Google::Cloud::DataCatalog::Lineage::V1::MultipleEntityReference, ::Hash]
1669
+ # Optional. Send a list of asset information in the **targets** field to
1670
+ # retrieve all links that lead from upstream assets to the specified
1671
+ # assets. This field is similar to the `target`
1672
+ # {::Google::Cloud::DataCatalog::Lineage::V1::SearchLinksRequest#target target}
1673
+ # field but allows providing multiple entities.
1674
+ # All entities within the `MultipleEntityReference` must have the same
1675
+ # `fully_qualified_name`.
1676
+ #
1677
+ # Note: The following parameters are mutually exclusive: `targets`, `source`, `target`, `sources`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
1653
1678
  # @param page_size [::Integer]
1654
1679
  # Optional. The maximum number of links to return in a single page of the
1655
1680
  # response. A page may contain fewer links than this value. If unspecified,
@@ -1776,11 +1801,11 @@ module Google
1776
1801
  #
1777
1802
  # Format: `projects/{project}/locations/{location}/links/{link}`.
1778
1803
  # @param page_size [::Integer]
1779
- # The maximum number of processes to return in a single page of the response.
1780
- # A page may contain fewer results than this value.
1804
+ # Optional. The maximum number of processes to return in a single page of the
1805
+ # response. A page may contain fewer results than this value.
1781
1806
  # @param page_token [::String]
1782
- # The page token received from a previous `BatchSearchLinkProcesses` call.
1783
- # Use it to get the next page.
1807
+ # Optional. The page token received from a previous
1808
+ # `BatchSearchLinkProcesses` call. Use it to get the next page.
1784
1809
  #
1785
1810
  # When requesting subsequent pages of a response, remember that
1786
1811
  # all parameters must match the values you provided
@@ -1856,6 +1881,128 @@ module Google
1856
1881
  raise ::Google::Cloud::Error.from_error(e)
1857
1882
  end
1858
1883
 
1884
+ ##
1885
+ # Retrieves a streaming response of lineage links connected to the requested
1886
+ # assets by performing a breadth-first search in the given direction. Links
1887
+ # represent the data flow between **source** (upstream) and **target**
1888
+ # (downstream) assets in transformation pipelines. Links are stored in the
1889
+ # same project as the Lineage Events that create them. This method retrieves
1890
+ # links from all valid locations provided in the request. This method
1891
+ # supports Column-Level Lineage (CLL) along with wildcard support to retrieve
1892
+ # all CLL for an Entity FQN.
1893
+ #
1894
+ # Following permissions are required to retrieve links:
1895
+ # * `datalineage.events.get` permission for the project where the link is
1896
+ # stored for entity-level lineage.
1897
+ # * `datalineage.events.getFields` permission for the project where the link
1898
+ # is stored for column-level lineage.
1899
+ #
1900
+ # This method also returns processes that created the links if explicitly
1901
+ # requested by setting
1902
+ # [max_process_per_link](google.cloud.datacatalog.lineage.v1.SearchLineageStreamingRequest.limits.max_process_per_link)
1903
+ # is non-zero and full process details are requested via
1904
+ # `links.processes.process` in the
1905
+ # [FieldMask](https://developers.google.com/workspace/docs/api/how-tos/field-masks#read_with_a_field_mask).
1906
+ #
1907
+ # Permission required to retrieve processes:
1908
+ # * `datalineage.processes.get` permission for the project where the process
1909
+ # is stored.
1910
+ #
1911
+ # @overload search_lineage_streaming(request, options = nil)
1912
+ # Pass arguments to `search_lineage_streaming` via a request object, either of type
1913
+ # {::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingRequest} or an equivalent Hash.
1914
+ #
1915
+ # @param request [::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingRequest, ::Hash]
1916
+ # A request object representing the call parameters. Required. To specify no
1917
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1918
+ # @param options [::Gapic::CallOptions, ::Hash]
1919
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1920
+ #
1921
+ # @overload search_lineage_streaming(parent: nil, locations: nil, root_criteria: nil, direction: nil, filters: nil, limits: nil)
1922
+ # Pass arguments to `search_lineage_streaming` via keyword arguments. Note that at
1923
+ # least one keyword argument is required. To specify no parameters, or to keep all
1924
+ # the default parameter values, pass an empty Hash as a request object (see above).
1925
+ #
1926
+ # @param parent [::String]
1927
+ # Required. The project and location to initiate the search from.
1928
+ # @param locations [::Array<::String>]
1929
+ # Required. The locations to search in.
1930
+ # @param root_criteria [::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingRequest::RootCriteria, ::Hash]
1931
+ # Required. Criteria for the root of the search.
1932
+ # @param direction [::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingRequest::SearchDirection]
1933
+ # Required. Direction of the search.
1934
+ # @param filters [::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingRequest::SearchFilters, ::Hash]
1935
+ # Optional. Filters for the search.
1936
+ # @param limits [::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingRequest::SearchLimits, ::Hash]
1937
+ # Optional. Limits for the search.
1938
+ #
1939
+ # @yield [response, operation] Access the result along with the RPC operation
1940
+ # @yieldparam response [::Enumerable<::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingResponse>]
1941
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1942
+ #
1943
+ # @return [::Enumerable<::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingResponse>]
1944
+ #
1945
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1946
+ #
1947
+ # @example Basic example
1948
+ # require "google/cloud/data_catalog/lineage/v1"
1949
+ #
1950
+ # # Create a client object. The client can be reused for multiple calls.
1951
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Client.new
1952
+ #
1953
+ # # Create a request. To set request fields, pass in keyword arguments.
1954
+ # request = Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingRequest.new
1955
+ #
1956
+ # # Call the search_lineage_streaming method to start streaming.
1957
+ # output = client.search_lineage_streaming request
1958
+ #
1959
+ # # The returned object is a streamed enumerable yielding elements of type
1960
+ # # ::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingResponse
1961
+ # output.each do |current_response|
1962
+ # p current_response
1963
+ # end
1964
+ #
1965
+ def search_lineage_streaming request, options = nil
1966
+ raise ::ArgumentError, "request must be provided" if request.nil?
1967
+
1968
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::SearchLineageStreamingRequest
1969
+
1970
+ # Converts hash and nil to an options object
1971
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1972
+
1973
+ # Customize the options with defaults
1974
+ metadata = @config.rpcs.search_lineage_streaming.metadata.to_h
1975
+
1976
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1977
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1978
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1979
+ gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION
1980
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1981
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1982
+
1983
+ header_params = {}
1984
+ if request.parent
1985
+ header_params["parent"] = request.parent
1986
+ end
1987
+
1988
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1989
+ metadata[:"x-goog-request-params"] ||= request_params_header
1990
+
1991
+ options.apply_defaults timeout: @config.rpcs.search_lineage_streaming.timeout,
1992
+ metadata: metadata,
1993
+ retry_policy: @config.rpcs.search_lineage_streaming.retry_policy
1994
+
1995
+ options.apply_defaults timeout: @config.timeout,
1996
+ metadata: @config.metadata,
1997
+ retry_policy: @config.retry_policy
1998
+
1999
+ @lineage_stub.call_rpc :search_lineage_streaming, request, options: options do |response, operation|
2000
+ yield response, operation if block_given?
2001
+ end
2002
+ rescue ::GRPC::BadStatus => e
2003
+ raise ::Google::Cloud::Error.from_error(e)
2004
+ end
2005
+
1859
2006
  ##
1860
2007
  # Configuration class for the Lineage API.
1861
2008
  #
@@ -2124,6 +2271,11 @@ module Google
2124
2271
  # @return [::Gapic::Config::Method]
2125
2272
  #
2126
2273
  attr_reader :batch_search_link_processes
2274
+ ##
2275
+ # RPC-specific configuration for `search_lineage_streaming`
2276
+ # @return [::Gapic::Config::Method]
2277
+ #
2278
+ attr_reader :search_lineage_streaming
2127
2279
 
2128
2280
  # @private
2129
2281
  def initialize parent_rpcs = nil
@@ -2161,6 +2313,8 @@ module Google
2161
2313
  @search_links = ::Gapic::Config::Method.new search_links_config
2162
2314
  batch_search_link_processes_config = parent_rpcs.batch_search_link_processes if parent_rpcs.respond_to? :batch_search_link_processes
2163
2315
  @batch_search_link_processes = ::Gapic::Config::Method.new batch_search_link_processes_config
2316
+ search_lineage_streaming_config = parent_rpcs.search_lineage_streaming if parent_rpcs.respond_to? :search_lineage_streaming
2317
+ @search_lineage_streaming = ::Gapic::Config::Method.new search_lineage_streaming_config
2164
2318
 
2165
2319
  yield self if block_given?
2166
2320
  end