Skip to content

Commit 2138f42

Browse files
feat: Automated regeneration of datalineage v1 client (googleapis#21313)
Auto-created at 2025-01-08 01:21:41 +0000 using the toys pull request generator.
1 parent 4340b27 commit 2138f42

File tree

8 files changed

+123
-19
lines changed

8 files changed

+123
-19
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139090,6 +139090,11 @@
139090139090
"/datalineage:v1/GoogleCloudDatacatalogLineageV1ProcessLinks/links": links
139091139091
"/datalineage:v1/GoogleCloudDatacatalogLineageV1ProcessLinks/links/link": link
139092139092
"/datalineage:v1/GoogleCloudDatacatalogLineageV1ProcessLinks/process": process
139093+
"/datalineage:v1/GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse": google_cloud_datacatalog_lineage_v1_process_open_lineage_run_event_response
139094+
"/datalineage:v1/GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse/lineageEvents": lineage_events
139095+
"/datalineage:v1/GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse/lineageEvents/lineage_event": lineage_event
139096+
"/datalineage:v1/GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse/process": process
139097+
"/datalineage:v1/GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse/run": run
139093139098
"/datalineage:v1/GoogleCloudDatacatalogLineageV1Run": google_cloud_datacatalog_lineage_v1_run
139094139099
"/datalineage:v1/GoogleCloudDatacatalogLineageV1Run/attributes": attributes
139095139100
"/datalineage:v1/GoogleCloudDatacatalogLineageV1Run/attributes/attribute": attribute
@@ -139140,6 +139145,9 @@
139140139145
"/datalineage:v1/datalineage.projects.locations.operations.list/name": name
139141139146
"/datalineage:v1/datalineage.projects.locations.operations.list/pageSize": page_size
139142139147
"/datalineage:v1/datalineage.projects.locations.operations.list/pageToken": page_token
139148+
"/datalineage:v1/datalineage.projects.locations.processOpenLineageRunEvent": process_project_location_open_lineage_run_event
139149+
"/datalineage:v1/datalineage.projects.locations.processOpenLineageRunEvent/parent": parent
139150+
"/datalineage:v1/datalineage.projects.locations.processOpenLineageRunEvent/requestId": request_id
139143139151
"/datalineage:v1/datalineage.projects.locations.processes.create": create_project_location_process
139144139152
"/datalineage:v1/datalineage.projects.locations.processes.create/parent": parent
139145139153
"/datalineage:v1/datalineage.projects.locations.processes.create/requestId": request_id

generated/google-apis-datalineage_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-datalineage_v1
22

3+
### v0.5.0 (2025-01-08)
4+
5+
* Regenerated from discovery document revision 20241202
6+
* Regenerated using generator version 0.15.1
7+
38
### v0.4.0 (2023-07-02)
49

510
* Regenerated from discovery document revision 20230623

generated/google-apis-datalineage_v1/OVERVIEW.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/data-catalog) may provide g
8383

8484
## Supported Ruby versions
8585

86-
This library is supported on Ruby 2.5+.
86+
This library is supported on Ruby 2.7+.
8787

88-
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
8989

9090
## License
9191

generated/google-apis-datalineage_v1/google-apis-datalineage_v1.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ Gem::Specification.new do |gem|
2828
gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
2929
gem.require_paths = ["lib"]
3030

31-
gem.required_ruby_version = '>= 2.5'
32-
gem.add_runtime_dependency "google-apis-core", ">= 0.11.0", "< 2.a"
31+
gem.required_ruby_version = '>= 2.7'
32+
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
3333
end

generated/google-apis-datalineage_v1/lib/google/apis/datalineage_v1/classes.rb

Lines changed: 44 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,9 @@ class GoogleCloudDatacatalogLineageV1Origin
368368
attr_accessor :name
369369

370370
# Type of the source. Use of a source_type other than `CUSTOM` for process
371-
# creation or updating is highly discouraged, and may be restricted in the
372-
# future without notice.
371+
# creation or updating is highly discouraged. It might be restricted in the
372+
# future without notice. There will be increase in cost if you use any of the
373+
# source types other than `CUSTOM`.
373374
# Corresponds to the JSON property `sourceType`
374375
# @return [String]
375376
attr_accessor :source_type
@@ -490,6 +491,40 @@ def update!(**args)
490491
end
491492
end
492493

494+
# Response message for ProcessOpenLineageRunEvent.
495+
class GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
496+
include Google::Apis::Core::Hashable
497+
498+
# Created lineage event names. Format: `projects/`project`/locations/`location`/
499+
# processes/`process`/runs/`run`/lineageEvents/`lineage_event``.
500+
# Corresponds to the JSON property `lineageEvents`
501+
# @return [Array<String>]
502+
attr_accessor :lineage_events
503+
504+
# Created process name. Format: `projects/`project`/locations/`location`/
505+
# processes/`process``.
506+
# Corresponds to the JSON property `process`
507+
# @return [String]
508+
attr_accessor :process
509+
510+
# Created run name. Format: `projects/`project`/locations/`location`/processes/`
511+
# process`/runs/`run``.
512+
# Corresponds to the JSON property `run`
513+
# @return [String]
514+
attr_accessor :run
515+
516+
def initialize(**args)
517+
update!(**args)
518+
end
519+
520+
# Update properties of this object
521+
def update!(**args)
522+
@lineage_events = args[:lineage_events] if args.key?(:lineage_events)
523+
@process = args[:process] if args.key?(:process)
524+
@run = args[:run] if args.key?(:run)
525+
end
526+
end
527+
493528
# A lineage run represents an execution of a process that creates lineage events.
494529
class GoogleCloudDatacatalogLineageV1Run
495530
include Google::Apis::Core::Hashable
@@ -691,13 +726,13 @@ class GoogleLongrunningOperation
691726
# @return [String]
692727
attr_accessor :name
693728

694-
# The normal response of the operation in case of success. If the original
695-
# method returns no data on success, such as `Delete`, the response is `google.
696-
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
697-
# the response should be the resource. For other methods, the response should
698-
# have the type `XxxResponse`, where `Xxx` is the original method name. For
699-
# example, if the original method name is `TakeSnapshot()`, the inferred
700-
# response type is `TakeSnapshotResponse`.
729+
# The normal, successful response of the operation. If the original method
730+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
731+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
732+
# response should be the resource. For other methods, the response should have
733+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
734+
# if the original method name is `TakeSnapshot()`, the inferred response type is
735+
# `TakeSnapshotResponse`.
701736
# Corresponds to the JSON property `response`
702737
# @return [Hash<String,Object>]
703738
attr_accessor :response

generated/google-apis-datalineage_v1/lib/google/apis/datalineage_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DatalineageV1
1818
# Version of the google-apis-datalineage_v1 gem
19-
GEM_VERSION = "0.4.0"
19+
GEM_VERSION = "0.5.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.12.0"
22+
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230623"
25+
REVISION = "20241202"
2626
end
2727
end
2828
end

generated/google-apis-datalineage_v1/lib/google/apis/datalineage_v1/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
106106
include Google::Apis::Core::JsonObjectSupport
107107
end
108108

109+
class GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
110+
class Representation < Google::Apis::Core::JsonRepresentation; end
111+
112+
include Google::Apis::Core::JsonObjectSupport
113+
end
114+
109115
class GoogleCloudDatacatalogLineageV1Run
110116
class Representation < Google::Apis::Core::JsonRepresentation; end
111117

@@ -289,6 +295,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
289295
end
290296
end
291297

298+
class GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
299+
# @private
300+
class Representation < Google::Apis::Core::JsonRepresentation
301+
collection :lineage_events, as: 'lineageEvents'
302+
property :process, as: 'process'
303+
property :run, as: 'run'
304+
end
305+
end
306+
292307
class GoogleCloudDatacatalogLineageV1Run
293308
# @private
294309
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-datalineage_v1/lib/google/apis/datalineage_v1/service.rb

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ module DatalineageV1
3232
#
3333
# @see https://cloud.google.com/data-catalog
3434
class DatalineageService < Google::Apis::Core::BaseService
35+
DEFAULT_ENDPOINT_TEMPLATE = "https://datalineage.$UNIVERSE_DOMAIN$/"
36+
3537
# @return [String]
3638
# API key. Your API key identifies your project and provides you with API access,
3739
# quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ class DatalineageService < Google::Apis::Core::BaseService
4345
attr_accessor :quota_user
4446

4547
def initialize
46-
super('https://datalineage.googleapis.com/', '',
48+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
4749
client_name: 'google-apis-datalineage_v1',
4850
client_version: Google::Apis::DatalineageV1::GEM_VERSION)
4951
@batch_path = 'batch'
@@ -90,6 +92,45 @@ def batch_project_location_search_link_processes(parent, google_cloud_datacatalo
9092
execute_or_queue_command(command, &block)
9193
end
9294

95+
# Creates new lineage events together with their parents: process and run.
96+
# Updates the process and run if they already exist. Mapped from Open Lineage
97+
# specification: https://github.com/OpenLineage/OpenLineage/blob/main/spec/
98+
# OpenLineage.json.
99+
# @param [String] parent
100+
# Required. The name of the project and its location that should own the process,
101+
# run, and lineage event.
102+
# @param [String] request_id
103+
# A unique identifier for this request. Restricted to 36 ASCII characters. A
104+
# random UUID is recommended. This request is idempotent only if a `request_id`
105+
# is provided.
106+
# @param [String] fields
107+
# Selector specifying which fields to include in a partial response.
108+
# @param [String] quota_user
109+
# Available to use for quota purposes for server-side applications. Can be any
110+
# arbitrary string assigned to a user, but should not exceed 40 characters.
111+
# @param [Google::Apis::RequestOptions] options
112+
# Request-specific options
113+
#
114+
# @yield [result, err] Result & error if block supplied
115+
# @yieldparam result [Google::Apis::DatalineageV1::GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse] parsed result object
116+
# @yieldparam err [StandardError] error object if request failed
117+
#
118+
# @return [Google::Apis::DatalineageV1::GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse]
119+
#
120+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122+
# @raise [Google::Apis::AuthorizationError] Authorization is required
123+
def process_project_location_open_lineage_run_event(parent, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
124+
command = make_simple_command(:post, 'v1/{+parent}:processOpenLineageRunEvent', options)
125+
command.response_representation = Google::Apis::DatalineageV1::GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse::Representation
126+
command.response_class = Google::Apis::DatalineageV1::GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
127+
command.params['parent'] = parent unless parent.nil?
128+
command.query['requestId'] = request_id unless request_id.nil?
129+
command.query['fields'] = fields unless fields.nil?
130+
command.query['quotaUser'] = quota_user unless quota_user.nil?
131+
execute_or_queue_command(command, &block)
132+
end
133+
93134
# Retrieve a list of links connected to a specific asset. Links represent the
94135
# data flow between **source** (upstream) and **target** (downstream) assets in
95136
# transformation pipelines. Links are stored in the same project as the Lineage
@@ -134,8 +175,8 @@ def search_project_location_links(parent, google_cloud_datacatalog_lineage_v1_se
134175
# Clients can use Operations.GetOperation or other methods to check whether the
135176
# cancellation succeeded or whether the operation completed despite cancellation.
136177
# On successful cancellation, the operation is not deleted; instead, it becomes
137-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
138-
# corresponding to `Code.CANCELLED`.
178+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
179+
# , corresponding to `Code.CANCELLED`.
139180
# @param [String] name
140181
# The name of the operation resource to be cancelled.
141182
# @param [Google::Apis::DatalineageV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object

0 commit comments

Comments
 (0)