google-cloud-data_catalog-lineage-v1 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/client.rb +1971 -0
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/credentials.rb +49 -0
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/operations.rb +770 -0
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/paths.rb +115 -0
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/client.rb +1549 -0
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/operations.rb +795 -0
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/service_stub.rb +1001 -0
- data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest.rb +58 -0
- data/lib/google/cloud/data_catalog/lineage/v1/lineage.rb +61 -0
- data/lib/google/cloud/data_catalog/lineage/v1/rest.rb +39 -0
- data/lib/google/cloud/data_catalog/lineage/v1/version.rb +7 -2
- data/lib/google/cloud/data_catalog/lineage/v1.rb +47 -0
- data/lib/google/cloud/datacatalog/lineage/v1/lineage_pb.rb +241 -0
- data/lib/google/cloud/datacatalog/lineage/v1/lineage_services_pb.rb +104 -0
- data/lib/google-cloud-data_catalog-lineage-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/datacatalog/lineage/v1/lineage.rb +707 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +192 -12
@@ -0,0 +1,1549 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/errors"
|
20
|
+
require "google/cloud/datacatalog/lineage/v1/lineage_pb"
|
21
|
+
require "google/cloud/data_catalog/lineage/v1/lineage/rest/service_stub"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module DataCatalog
|
26
|
+
module Lineage
|
27
|
+
module V1
|
28
|
+
module Lineage
|
29
|
+
module Rest
|
30
|
+
##
|
31
|
+
# REST client for the Lineage service.
|
32
|
+
#
|
33
|
+
# Lineage is used to track data flows between assets over time. You can
|
34
|
+
# create {::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent LineageEvents}
|
35
|
+
# to record lineage between multiple sources and a single target, for
|
36
|
+
# example, when table data is based on data from multiple tables.
|
37
|
+
#
|
38
|
+
class Client
|
39
|
+
include Paths
|
40
|
+
|
41
|
+
# @private
|
42
|
+
attr_reader :lineage_stub
|
43
|
+
|
44
|
+
##
|
45
|
+
# Configure the Lineage Client class.
|
46
|
+
#
|
47
|
+
# See {::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client::Configuration}
|
48
|
+
# for a description of the configuration fields.
|
49
|
+
#
|
50
|
+
# @example
|
51
|
+
#
|
52
|
+
# # Modify the configuration for all Lineage clients
|
53
|
+
# ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.configure do |config|
|
54
|
+
# config.timeout = 10.0
|
55
|
+
# end
|
56
|
+
#
|
57
|
+
# @yield [config] Configure the Client client.
|
58
|
+
# @yieldparam config [Client::Configuration]
|
59
|
+
#
|
60
|
+
# @return [Client::Configuration]
|
61
|
+
#
|
62
|
+
def self.configure
|
63
|
+
@configure ||= begin
|
64
|
+
namespace = ["Google", "Cloud", "DataCatalog", "Lineage", "V1"]
|
65
|
+
parent_config = while namespace.any?
|
66
|
+
parent_name = namespace.join "::"
|
67
|
+
parent_const = const_get parent_name
|
68
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
69
|
+
namespace.pop
|
70
|
+
end
|
71
|
+
default_config = Client::Configuration.new parent_config
|
72
|
+
|
73
|
+
default_config.timeout = 60.0
|
74
|
+
default_config.retry_policy = {
|
75
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
76
|
+
}
|
77
|
+
|
78
|
+
default_config
|
79
|
+
end
|
80
|
+
yield @configure if block_given?
|
81
|
+
@configure
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Configure the Lineage Client instance.
|
86
|
+
#
|
87
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
88
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
89
|
+
# should be made on {Client.configure}.
|
90
|
+
#
|
91
|
+
# See {::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client::Configuration}
|
92
|
+
# for a description of the configuration fields.
|
93
|
+
#
|
94
|
+
# @yield [config] Configure the Client client.
|
95
|
+
# @yieldparam config [Client::Configuration]
|
96
|
+
#
|
97
|
+
# @return [Client::Configuration]
|
98
|
+
#
|
99
|
+
def configure
|
100
|
+
yield @config if block_given?
|
101
|
+
@config
|
102
|
+
end
|
103
|
+
|
104
|
+
##
|
105
|
+
# Create a new Lineage REST client object.
|
106
|
+
#
|
107
|
+
# @example
|
108
|
+
#
|
109
|
+
# # Create a client using the default configuration
|
110
|
+
# client = ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
|
111
|
+
#
|
112
|
+
# # Create a client using a custom configuration
|
113
|
+
# client = ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new do |config|
|
114
|
+
# config.timeout = 10.0
|
115
|
+
# end
|
116
|
+
#
|
117
|
+
# @yield [config] Configure the Lineage client.
|
118
|
+
# @yieldparam config [Client::Configuration]
|
119
|
+
#
|
120
|
+
def initialize
|
121
|
+
# Create the configuration object
|
122
|
+
@config = Configuration.new Client.configure
|
123
|
+
|
124
|
+
# Yield the configuration if needed
|
125
|
+
yield @config if block_given?
|
126
|
+
|
127
|
+
# Create credentials
|
128
|
+
credentials = @config.credentials
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
130
|
+
# but only if the default endpoint does not have a region prefix.
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
132
|
+
!@config.endpoint.split(".").first.include?("-")
|
133
|
+
credentials ||= Credentials.default scope: @config.scope,
|
134
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
135
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
136
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
137
|
+
end
|
138
|
+
|
139
|
+
@quota_project_id = @config.quota_project
|
140
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
141
|
+
|
142
|
+
@operations_client = ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Operations.new do |config|
|
143
|
+
config.credentials = credentials
|
144
|
+
config.quota_project = @quota_project_id
|
145
|
+
config.endpoint = @config.endpoint
|
146
|
+
end
|
147
|
+
|
148
|
+
@lineage_stub = ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
149
|
+
end
|
150
|
+
|
151
|
+
##
|
152
|
+
# Get the associated client for long-running operations.
|
153
|
+
#
|
154
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Operations]
|
155
|
+
#
|
156
|
+
attr_reader :operations_client
|
157
|
+
|
158
|
+
# Service calls
|
159
|
+
|
160
|
+
##
|
161
|
+
# Creates a new process.
|
162
|
+
#
|
163
|
+
# @overload create_process(request, options = nil)
|
164
|
+
# Pass arguments to `create_process` via a request object, either of type
|
165
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::CreateProcessRequest} or an equivalent Hash.
|
166
|
+
#
|
167
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::CreateProcessRequest, ::Hash]
|
168
|
+
# A request object representing the call parameters. Required. To specify no
|
169
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
170
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
171
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
172
|
+
#
|
173
|
+
# @overload create_process(parent: nil, process: nil, request_id: nil)
|
174
|
+
# Pass arguments to `create_process` via keyword arguments. Note that at
|
175
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
176
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
177
|
+
#
|
178
|
+
# @param parent [::String]
|
179
|
+
# Required. The name of the project and its location that should own the
|
180
|
+
# process.
|
181
|
+
# @param process [::Google::Cloud::DataCatalog::Lineage::V1::Process, ::Hash]
|
182
|
+
# Required. The process to create.
|
183
|
+
# @param request_id [::String]
|
184
|
+
# A unique identifier for this request. Restricted to 36 ASCII characters.
|
185
|
+
# A random UUID is recommended. This request is idempotent only if a
|
186
|
+
# `request_id` is provided.
|
187
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
188
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::Process]
|
189
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
190
|
+
#
|
191
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::Process]
|
192
|
+
#
|
193
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
194
|
+
def create_process request, options = nil
|
195
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
196
|
+
|
197
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::CreateProcessRequest
|
198
|
+
|
199
|
+
# Converts hash and nil to an options object
|
200
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
201
|
+
|
202
|
+
# Customize the options with defaults
|
203
|
+
call_metadata = @config.rpcs.create_process.metadata.to_h
|
204
|
+
|
205
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
206
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
207
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
208
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
209
|
+
transports_version_send: [:rest]
|
210
|
+
|
211
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
212
|
+
|
213
|
+
options.apply_defaults timeout: @config.rpcs.create_process.timeout,
|
214
|
+
metadata: call_metadata,
|
215
|
+
retry_policy: @config.rpcs.create_process.retry_policy
|
216
|
+
|
217
|
+
options.apply_defaults timeout: @config.timeout,
|
218
|
+
metadata: @config.metadata,
|
219
|
+
retry_policy: @config.retry_policy
|
220
|
+
|
221
|
+
@lineage_stub.create_process request, options do |result, operation|
|
222
|
+
yield result, operation if block_given?
|
223
|
+
return result
|
224
|
+
end
|
225
|
+
rescue ::Gapic::Rest::Error => e
|
226
|
+
raise ::Google::Cloud::Error.from_error(e)
|
227
|
+
end
|
228
|
+
|
229
|
+
##
|
230
|
+
# Updates a process.
|
231
|
+
#
|
232
|
+
# @overload update_process(request, options = nil)
|
233
|
+
# Pass arguments to `update_process` via a request object, either of type
|
234
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::UpdateProcessRequest} or an equivalent Hash.
|
235
|
+
#
|
236
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::UpdateProcessRequest, ::Hash]
|
237
|
+
# A request object representing the call parameters. Required. To specify no
|
238
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
239
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
240
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
241
|
+
#
|
242
|
+
# @overload update_process(process: nil, update_mask: nil, allow_missing: nil)
|
243
|
+
# Pass arguments to `update_process` via keyword arguments. Note that at
|
244
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
245
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
246
|
+
#
|
247
|
+
# @param process [::Google::Cloud::DataCatalog::Lineage::V1::Process, ::Hash]
|
248
|
+
# Required. The lineage process to update.
|
249
|
+
#
|
250
|
+
# The process's `name` field is used to identify the process to update.
|
251
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
252
|
+
# The list of fields to update. Currently not used. The whole message is
|
253
|
+
# updated.
|
254
|
+
# @param allow_missing [::Boolean]
|
255
|
+
# If set to true and the process is not found, the request inserts it.
|
256
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
257
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::Process]
|
258
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
259
|
+
#
|
260
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::Process]
|
261
|
+
#
|
262
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
263
|
+
def update_process request, options = nil
|
264
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
265
|
+
|
266
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::UpdateProcessRequest
|
267
|
+
|
268
|
+
# Converts hash and nil to an options object
|
269
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
270
|
+
|
271
|
+
# Customize the options with defaults
|
272
|
+
call_metadata = @config.rpcs.update_process.metadata.to_h
|
273
|
+
|
274
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
275
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
276
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
277
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
278
|
+
transports_version_send: [:rest]
|
279
|
+
|
280
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
281
|
+
|
282
|
+
options.apply_defaults timeout: @config.rpcs.update_process.timeout,
|
283
|
+
metadata: call_metadata,
|
284
|
+
retry_policy: @config.rpcs.update_process.retry_policy
|
285
|
+
|
286
|
+
options.apply_defaults timeout: @config.timeout,
|
287
|
+
metadata: @config.metadata,
|
288
|
+
retry_policy: @config.retry_policy
|
289
|
+
|
290
|
+
@lineage_stub.update_process request, options do |result, operation|
|
291
|
+
yield result, operation if block_given?
|
292
|
+
return result
|
293
|
+
end
|
294
|
+
rescue ::Gapic::Rest::Error => e
|
295
|
+
raise ::Google::Cloud::Error.from_error(e)
|
296
|
+
end
|
297
|
+
|
298
|
+
##
|
299
|
+
# Gets the details of the specified process.
|
300
|
+
#
|
301
|
+
# @overload get_process(request, options = nil)
|
302
|
+
# Pass arguments to `get_process` via a request object, either of type
|
303
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::GetProcessRequest} or an equivalent Hash.
|
304
|
+
#
|
305
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::GetProcessRequest, ::Hash]
|
306
|
+
# A request object representing the call parameters. Required. To specify no
|
307
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
308
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
309
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
310
|
+
#
|
311
|
+
# @overload get_process(name: nil)
|
312
|
+
# Pass arguments to `get_process` via keyword arguments. Note that at
|
313
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
314
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
315
|
+
#
|
316
|
+
# @param name [::String]
|
317
|
+
# Required. The name of the process to get.
|
318
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
319
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::Process]
|
320
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
321
|
+
#
|
322
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::Process]
|
323
|
+
#
|
324
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
325
|
+
def get_process request, options = nil
|
326
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
327
|
+
|
328
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::GetProcessRequest
|
329
|
+
|
330
|
+
# Converts hash and nil to an options object
|
331
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
332
|
+
|
333
|
+
# Customize the options with defaults
|
334
|
+
call_metadata = @config.rpcs.get_process.metadata.to_h
|
335
|
+
|
336
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
337
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
338
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
339
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
340
|
+
transports_version_send: [:rest]
|
341
|
+
|
342
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
343
|
+
|
344
|
+
options.apply_defaults timeout: @config.rpcs.get_process.timeout,
|
345
|
+
metadata: call_metadata,
|
346
|
+
retry_policy: @config.rpcs.get_process.retry_policy
|
347
|
+
|
348
|
+
options.apply_defaults timeout: @config.timeout,
|
349
|
+
metadata: @config.metadata,
|
350
|
+
retry_policy: @config.retry_policy
|
351
|
+
|
352
|
+
@lineage_stub.get_process request, options do |result, operation|
|
353
|
+
yield result, operation if block_given?
|
354
|
+
return result
|
355
|
+
end
|
356
|
+
rescue ::Gapic::Rest::Error => e
|
357
|
+
raise ::Google::Cloud::Error.from_error(e)
|
358
|
+
end
|
359
|
+
|
360
|
+
##
|
361
|
+
# List processes in the given project and location. List order is descending
|
362
|
+
# by insertion time.
|
363
|
+
#
|
364
|
+
# @overload list_processes(request, options = nil)
|
365
|
+
# Pass arguments to `list_processes` via a request object, either of type
|
366
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::ListProcessesRequest} or an equivalent Hash.
|
367
|
+
#
|
368
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::ListProcessesRequest, ::Hash]
|
369
|
+
# A request object representing the call parameters. Required. To specify no
|
370
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
371
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
372
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
373
|
+
#
|
374
|
+
# @overload list_processes(parent: nil, page_size: nil, page_token: nil)
|
375
|
+
# Pass arguments to `list_processes` via keyword arguments. Note that at
|
376
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
377
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
378
|
+
#
|
379
|
+
# @param parent [::String]
|
380
|
+
# Required. The name of the project and its location that owns this
|
381
|
+
# collection of processes.
|
382
|
+
# @param page_size [::Integer]
|
383
|
+
# The maximum number of processes to return. The service may return
|
384
|
+
# fewer than this value. If unspecified, at most 50 processes are
|
385
|
+
# returned. The maximum value is 100; values greater than 100 are cut to
|
386
|
+
# 100.
|
387
|
+
# @param page_token [::String]
|
388
|
+
# The page token received from a previous `ListProcesses` call. Specify
|
389
|
+
# it to get the next page.
|
390
|
+
#
|
391
|
+
# When paginating, all other parameters specified in this call must
|
392
|
+
# match the parameters of the call that provided the page token.
|
393
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
394
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Process>]
|
395
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
396
|
+
#
|
397
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Process>]
|
398
|
+
#
|
399
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
def list_processes request, options = nil
|
401
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
402
|
+
|
403
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::ListProcessesRequest
|
404
|
+
|
405
|
+
# Converts hash and nil to an options object
|
406
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
407
|
+
|
408
|
+
# Customize the options with defaults
|
409
|
+
call_metadata = @config.rpcs.list_processes.metadata.to_h
|
410
|
+
|
411
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
412
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
413
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
414
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
415
|
+
transports_version_send: [:rest]
|
416
|
+
|
417
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
418
|
+
|
419
|
+
options.apply_defaults timeout: @config.rpcs.list_processes.timeout,
|
420
|
+
metadata: call_metadata,
|
421
|
+
retry_policy: @config.rpcs.list_processes.retry_policy
|
422
|
+
|
423
|
+
options.apply_defaults timeout: @config.timeout,
|
424
|
+
metadata: @config.metadata,
|
425
|
+
retry_policy: @config.retry_policy
|
426
|
+
|
427
|
+
@lineage_stub.list_processes request, options do |result, operation|
|
428
|
+
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :list_processes, "processes", request, result, options
|
429
|
+
yield result, operation if block_given?
|
430
|
+
return result
|
431
|
+
end
|
432
|
+
rescue ::Gapic::Rest::Error => e
|
433
|
+
raise ::Google::Cloud::Error.from_error(e)
|
434
|
+
end
|
435
|
+
|
436
|
+
##
|
437
|
+
# Deletes the process with the specified name.
|
438
|
+
#
|
439
|
+
# @overload delete_process(request, options = nil)
|
440
|
+
# Pass arguments to `delete_process` via a request object, either of type
|
441
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::DeleteProcessRequest} or an equivalent Hash.
|
442
|
+
#
|
443
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::DeleteProcessRequest, ::Hash]
|
444
|
+
# A request object representing the call parameters. Required. To specify no
|
445
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
446
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
447
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
448
|
+
#
|
449
|
+
# @overload delete_process(name: nil, allow_missing: nil)
|
450
|
+
# Pass arguments to `delete_process` via keyword arguments. Note that at
|
451
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
452
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
453
|
+
#
|
454
|
+
# @param name [::String]
|
455
|
+
# Required. The name of the process to delete.
|
456
|
+
# @param allow_missing [::Boolean]
|
457
|
+
# If set to true and the process is not found, the request
|
458
|
+
# succeeds but the server doesn't perform any actions.
|
459
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
460
|
+
# @yieldparam result [::Gapic::Operation]
|
461
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
462
|
+
#
|
463
|
+
# @return [::Gapic::Operation]
|
464
|
+
#
|
465
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
466
|
+
def delete_process request, options = nil
|
467
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
468
|
+
|
469
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::DeleteProcessRequest
|
470
|
+
|
471
|
+
# Converts hash and nil to an options object
|
472
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
473
|
+
|
474
|
+
# Customize the options with defaults
|
475
|
+
call_metadata = @config.rpcs.delete_process.metadata.to_h
|
476
|
+
|
477
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
478
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
479
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
480
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
481
|
+
transports_version_send: [:rest]
|
482
|
+
|
483
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
484
|
+
|
485
|
+
options.apply_defaults timeout: @config.rpcs.delete_process.timeout,
|
486
|
+
metadata: call_metadata,
|
487
|
+
retry_policy: @config.rpcs.delete_process.retry_policy
|
488
|
+
|
489
|
+
options.apply_defaults timeout: @config.timeout,
|
490
|
+
metadata: @config.metadata,
|
491
|
+
retry_policy: @config.retry_policy
|
492
|
+
|
493
|
+
@lineage_stub.delete_process request, options do |result, operation|
|
494
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
495
|
+
yield result, operation if block_given?
|
496
|
+
return result
|
497
|
+
end
|
498
|
+
rescue ::Gapic::Rest::Error => e
|
499
|
+
raise ::Google::Cloud::Error.from_error(e)
|
500
|
+
end
|
501
|
+
|
502
|
+
##
|
503
|
+
# Creates a new run.
|
504
|
+
#
|
505
|
+
# @overload create_run(request, options = nil)
|
506
|
+
# Pass arguments to `create_run` via a request object, either of type
|
507
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::CreateRunRequest} or an equivalent Hash.
|
508
|
+
#
|
509
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::CreateRunRequest, ::Hash]
|
510
|
+
# A request object representing the call parameters. Required. To specify no
|
511
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
512
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
513
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
514
|
+
#
|
515
|
+
# @overload create_run(parent: nil, run: nil, request_id: nil)
|
516
|
+
# Pass arguments to `create_run` via keyword arguments. Note that at
|
517
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
518
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
519
|
+
#
|
520
|
+
# @param parent [::String]
|
521
|
+
# Required. The name of the process that should own the run.
|
522
|
+
# @param run [::Google::Cloud::DataCatalog::Lineage::V1::Run, ::Hash]
|
523
|
+
# Required. The run to create.
|
524
|
+
# @param request_id [::String]
|
525
|
+
# A unique identifier for this request. Restricted to 36 ASCII characters.
|
526
|
+
# A random UUID is recommended. This request is idempotent only if a
|
527
|
+
# `request_id` is provided.
|
528
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
529
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::Run]
|
530
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
531
|
+
#
|
532
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::Run]
|
533
|
+
#
|
534
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
535
|
+
def create_run request, options = nil
|
536
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
537
|
+
|
538
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::CreateRunRequest
|
539
|
+
|
540
|
+
# Converts hash and nil to an options object
|
541
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
542
|
+
|
543
|
+
# Customize the options with defaults
|
544
|
+
call_metadata = @config.rpcs.create_run.metadata.to_h
|
545
|
+
|
546
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
547
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
548
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
549
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
550
|
+
transports_version_send: [:rest]
|
551
|
+
|
552
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
553
|
+
|
554
|
+
options.apply_defaults timeout: @config.rpcs.create_run.timeout,
|
555
|
+
metadata: call_metadata,
|
556
|
+
retry_policy: @config.rpcs.create_run.retry_policy
|
557
|
+
|
558
|
+
options.apply_defaults timeout: @config.timeout,
|
559
|
+
metadata: @config.metadata,
|
560
|
+
retry_policy: @config.retry_policy
|
561
|
+
|
562
|
+
@lineage_stub.create_run request, options do |result, operation|
|
563
|
+
yield result, operation if block_given?
|
564
|
+
return result
|
565
|
+
end
|
566
|
+
rescue ::Gapic::Rest::Error => e
|
567
|
+
raise ::Google::Cloud::Error.from_error(e)
|
568
|
+
end
|
569
|
+
|
570
|
+
##
|
571
|
+
# Updates a run.
|
572
|
+
#
|
573
|
+
# @overload update_run(request, options = nil)
|
574
|
+
# Pass arguments to `update_run` via a request object, either of type
|
575
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::UpdateRunRequest} or an equivalent Hash.
|
576
|
+
#
|
577
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::UpdateRunRequest, ::Hash]
|
578
|
+
# A request object representing the call parameters. Required. To specify no
|
579
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
580
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
581
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
582
|
+
#
|
583
|
+
# @overload update_run(run: nil, update_mask: nil)
|
584
|
+
# Pass arguments to `update_run` via keyword arguments. Note that at
|
585
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
586
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
587
|
+
#
|
588
|
+
# @param run [::Google::Cloud::DataCatalog::Lineage::V1::Run, ::Hash]
|
589
|
+
# Required. The lineage run to update.
|
590
|
+
#
|
591
|
+
# The run's `name` field is used to identify the run to update.
|
592
|
+
#
|
593
|
+
# Format:
|
594
|
+
# `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
|
595
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
596
|
+
# The list of fields to update. Currently not used. The whole message is
|
597
|
+
# updated.
|
598
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
599
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::Run]
|
600
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
601
|
+
#
|
602
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::Run]
|
603
|
+
#
|
604
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
605
|
+
def update_run request, options = nil
|
606
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
607
|
+
|
608
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::UpdateRunRequest
|
609
|
+
|
610
|
+
# Converts hash and nil to an options object
|
611
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
612
|
+
|
613
|
+
# Customize the options with defaults
|
614
|
+
call_metadata = @config.rpcs.update_run.metadata.to_h
|
615
|
+
|
616
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
617
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
618
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
619
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
620
|
+
transports_version_send: [:rest]
|
621
|
+
|
622
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
623
|
+
|
624
|
+
options.apply_defaults timeout: @config.rpcs.update_run.timeout,
|
625
|
+
metadata: call_metadata,
|
626
|
+
retry_policy: @config.rpcs.update_run.retry_policy
|
627
|
+
|
628
|
+
options.apply_defaults timeout: @config.timeout,
|
629
|
+
metadata: @config.metadata,
|
630
|
+
retry_policy: @config.retry_policy
|
631
|
+
|
632
|
+
@lineage_stub.update_run request, options do |result, operation|
|
633
|
+
yield result, operation if block_given?
|
634
|
+
return result
|
635
|
+
end
|
636
|
+
rescue ::Gapic::Rest::Error => e
|
637
|
+
raise ::Google::Cloud::Error.from_error(e)
|
638
|
+
end
|
639
|
+
|
640
|
+
##
|
641
|
+
# Gets the details of the specified run.
|
642
|
+
#
|
643
|
+
# @overload get_run(request, options = nil)
|
644
|
+
# Pass arguments to `get_run` via a request object, either of type
|
645
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::GetRunRequest} or an equivalent Hash.
|
646
|
+
#
|
647
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::GetRunRequest, ::Hash]
|
648
|
+
# A request object representing the call parameters. Required. To specify no
|
649
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
650
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
651
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
652
|
+
#
|
653
|
+
# @overload get_run(name: nil)
|
654
|
+
# Pass arguments to `get_run` via keyword arguments. Note that at
|
655
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
656
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
657
|
+
#
|
658
|
+
# @param name [::String]
|
659
|
+
# Required. The name of the run to get.
|
660
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
661
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::Run]
|
662
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
663
|
+
#
|
664
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::Run]
|
665
|
+
#
|
666
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
667
|
+
def get_run request, options = nil
|
668
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
669
|
+
|
670
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::GetRunRequest
|
671
|
+
|
672
|
+
# Converts hash and nil to an options object
|
673
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
674
|
+
|
675
|
+
# Customize the options with defaults
|
676
|
+
call_metadata = @config.rpcs.get_run.metadata.to_h
|
677
|
+
|
678
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
679
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
680
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
681
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
682
|
+
transports_version_send: [:rest]
|
683
|
+
|
684
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
685
|
+
|
686
|
+
options.apply_defaults timeout: @config.rpcs.get_run.timeout,
|
687
|
+
metadata: call_metadata,
|
688
|
+
retry_policy: @config.rpcs.get_run.retry_policy
|
689
|
+
|
690
|
+
options.apply_defaults timeout: @config.timeout,
|
691
|
+
metadata: @config.metadata,
|
692
|
+
retry_policy: @config.retry_policy
|
693
|
+
|
694
|
+
@lineage_stub.get_run request, options do |result, operation|
|
695
|
+
yield result, operation if block_given?
|
696
|
+
return result
|
697
|
+
end
|
698
|
+
rescue ::Gapic::Rest::Error => e
|
699
|
+
raise ::Google::Cloud::Error.from_error(e)
|
700
|
+
end
|
701
|
+
|
702
|
+
##
|
703
|
+
# Lists runs in the given project and location. List order is descending by
|
704
|
+
# `start_time`.
|
705
|
+
#
|
706
|
+
# @overload list_runs(request, options = nil)
|
707
|
+
# Pass arguments to `list_runs` via a request object, either of type
|
708
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::ListRunsRequest} or an equivalent Hash.
|
709
|
+
#
|
710
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::ListRunsRequest, ::Hash]
|
711
|
+
# A request object representing the call parameters. Required. To specify no
|
712
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
713
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
714
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
715
|
+
#
|
716
|
+
# @overload list_runs(parent: nil, page_size: nil, page_token: nil)
|
717
|
+
# Pass arguments to `list_runs` via keyword arguments. Note that at
|
718
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
719
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
720
|
+
#
|
721
|
+
# @param parent [::String]
|
722
|
+
# Required. The name of process that owns this collection of runs.
|
723
|
+
# @param page_size [::Integer]
|
724
|
+
# The maximum number of runs to return. The service may return
|
725
|
+
# fewer than this value. If unspecified, at most 50 runs are
|
726
|
+
# returned. The maximum value is 100; values greater than 100 are cut to
|
727
|
+
# 100.
|
728
|
+
# @param page_token [::String]
|
729
|
+
# The page token received from a previous `ListRuns` call. Specify
|
730
|
+
# it to get the next page.
|
731
|
+
#
|
732
|
+
# When paginating, all other parameters specified in this call must
|
733
|
+
# match the parameters of the call that provided the page token.
|
734
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
735
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Run>]
|
736
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
737
|
+
#
|
738
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Run>]
|
739
|
+
#
|
740
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
741
|
+
def list_runs request, options = nil
|
742
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
743
|
+
|
744
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::ListRunsRequest
|
745
|
+
|
746
|
+
# Converts hash and nil to an options object
|
747
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
748
|
+
|
749
|
+
# Customize the options with defaults
|
750
|
+
call_metadata = @config.rpcs.list_runs.metadata.to_h
|
751
|
+
|
752
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
753
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
754
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
755
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
756
|
+
transports_version_send: [:rest]
|
757
|
+
|
758
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
759
|
+
|
760
|
+
options.apply_defaults timeout: @config.rpcs.list_runs.timeout,
|
761
|
+
metadata: call_metadata,
|
762
|
+
retry_policy: @config.rpcs.list_runs.retry_policy
|
763
|
+
|
764
|
+
options.apply_defaults timeout: @config.timeout,
|
765
|
+
metadata: @config.metadata,
|
766
|
+
retry_policy: @config.retry_policy
|
767
|
+
|
768
|
+
@lineage_stub.list_runs request, options do |result, operation|
|
769
|
+
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :list_runs, "runs", request, result, options
|
770
|
+
yield result, operation if block_given?
|
771
|
+
return result
|
772
|
+
end
|
773
|
+
rescue ::Gapic::Rest::Error => e
|
774
|
+
raise ::Google::Cloud::Error.from_error(e)
|
775
|
+
end
|
776
|
+
|
777
|
+
##
|
778
|
+
# Deletes the run with the specified name.
|
779
|
+
#
|
780
|
+
# @overload delete_run(request, options = nil)
|
781
|
+
# Pass arguments to `delete_run` via a request object, either of type
|
782
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::DeleteRunRequest} or an equivalent Hash.
|
783
|
+
#
|
784
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::DeleteRunRequest, ::Hash]
|
785
|
+
# A request object representing the call parameters. Required. To specify no
|
786
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
787
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
788
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
789
|
+
#
|
790
|
+
# @overload delete_run(name: nil, allow_missing: nil)
|
791
|
+
# Pass arguments to `delete_run` via keyword arguments. Note that at
|
792
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
793
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
794
|
+
#
|
795
|
+
# @param name [::String]
|
796
|
+
# Required. The name of the run to delete.
|
797
|
+
# @param allow_missing [::Boolean]
|
798
|
+
# If set to true and the run is not found, the request
|
799
|
+
# succeeds but the server doesn't perform any actions.
|
800
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
801
|
+
# @yieldparam result [::Gapic::Operation]
|
802
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
803
|
+
#
|
804
|
+
# @return [::Gapic::Operation]
|
805
|
+
#
|
806
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
807
|
+
def delete_run request, options = nil
|
808
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
809
|
+
|
810
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::DeleteRunRequest
|
811
|
+
|
812
|
+
# Converts hash and nil to an options object
|
813
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
814
|
+
|
815
|
+
# Customize the options with defaults
|
816
|
+
call_metadata = @config.rpcs.delete_run.metadata.to_h
|
817
|
+
|
818
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
819
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
820
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
821
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
822
|
+
transports_version_send: [:rest]
|
823
|
+
|
824
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
825
|
+
|
826
|
+
options.apply_defaults timeout: @config.rpcs.delete_run.timeout,
|
827
|
+
metadata: call_metadata,
|
828
|
+
retry_policy: @config.rpcs.delete_run.retry_policy
|
829
|
+
|
830
|
+
options.apply_defaults timeout: @config.timeout,
|
831
|
+
metadata: @config.metadata,
|
832
|
+
retry_policy: @config.retry_policy
|
833
|
+
|
834
|
+
@lineage_stub.delete_run request, options do |result, operation|
|
835
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
836
|
+
yield result, operation if block_given?
|
837
|
+
return result
|
838
|
+
end
|
839
|
+
rescue ::Gapic::Rest::Error => e
|
840
|
+
raise ::Google::Cloud::Error.from_error(e)
|
841
|
+
end
|
842
|
+
|
843
|
+
##
|
844
|
+
# Creates a new lineage event.
|
845
|
+
#
|
846
|
+
# @overload create_lineage_event(request, options = nil)
|
847
|
+
# Pass arguments to `create_lineage_event` via a request object, either of type
|
848
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::CreateLineageEventRequest} or an equivalent Hash.
|
849
|
+
#
|
850
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::CreateLineageEventRequest, ::Hash]
|
851
|
+
# A request object representing the call parameters. Required. To specify no
|
852
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
853
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
854
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
855
|
+
#
|
856
|
+
# @overload create_lineage_event(parent: nil, lineage_event: nil, request_id: nil)
|
857
|
+
# Pass arguments to `create_lineage_event` via keyword arguments. Note that at
|
858
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
859
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
860
|
+
#
|
861
|
+
# @param parent [::String]
|
862
|
+
# Required. The name of the run that should own the lineage event.
|
863
|
+
# @param lineage_event [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent, ::Hash]
|
864
|
+
# Required. The lineage event to create.
|
865
|
+
# @param request_id [::String]
|
866
|
+
# A unique identifier for this request. Restricted to 36 ASCII characters.
|
867
|
+
# A random UUID is recommended. This request is idempotent only if a
|
868
|
+
# `request_id` is provided.
|
869
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
870
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent]
|
871
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
872
|
+
#
|
873
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent]
|
874
|
+
#
|
875
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
876
|
+
def create_lineage_event request, options = nil
|
877
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
878
|
+
|
879
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::CreateLineageEventRequest
|
880
|
+
|
881
|
+
# Converts hash and nil to an options object
|
882
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
883
|
+
|
884
|
+
# Customize the options with defaults
|
885
|
+
call_metadata = @config.rpcs.create_lineage_event.metadata.to_h
|
886
|
+
|
887
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
888
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
889
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
890
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
891
|
+
transports_version_send: [:rest]
|
892
|
+
|
893
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
894
|
+
|
895
|
+
options.apply_defaults timeout: @config.rpcs.create_lineage_event.timeout,
|
896
|
+
metadata: call_metadata,
|
897
|
+
retry_policy: @config.rpcs.create_lineage_event.retry_policy
|
898
|
+
|
899
|
+
options.apply_defaults timeout: @config.timeout,
|
900
|
+
metadata: @config.metadata,
|
901
|
+
retry_policy: @config.retry_policy
|
902
|
+
|
903
|
+
@lineage_stub.create_lineage_event request, options do |result, operation|
|
904
|
+
yield result, operation if block_given?
|
905
|
+
return result
|
906
|
+
end
|
907
|
+
rescue ::Gapic::Rest::Error => e
|
908
|
+
raise ::Google::Cloud::Error.from_error(e)
|
909
|
+
end
|
910
|
+
|
911
|
+
##
|
912
|
+
# Gets details of a specified lineage event.
|
913
|
+
#
|
914
|
+
# @overload get_lineage_event(request, options = nil)
|
915
|
+
# Pass arguments to `get_lineage_event` via a request object, either of type
|
916
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::GetLineageEventRequest} or an equivalent Hash.
|
917
|
+
#
|
918
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::GetLineageEventRequest, ::Hash]
|
919
|
+
# A request object representing the call parameters. Required. To specify no
|
920
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
921
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
923
|
+
#
|
924
|
+
# @overload get_lineage_event(name: nil)
|
925
|
+
# Pass arguments to `get_lineage_event` via keyword arguments. Note that at
|
926
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
927
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
928
|
+
#
|
929
|
+
# @param name [::String]
|
930
|
+
# Required. The name of the lineage event to get.
|
931
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
932
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent]
|
933
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
934
|
+
#
|
935
|
+
# @return [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent]
|
936
|
+
#
|
937
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
938
|
+
def get_lineage_event request, options = nil
|
939
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
940
|
+
|
941
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::GetLineageEventRequest
|
942
|
+
|
943
|
+
# Converts hash and nil to an options object
|
944
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
945
|
+
|
946
|
+
# Customize the options with defaults
|
947
|
+
call_metadata = @config.rpcs.get_lineage_event.metadata.to_h
|
948
|
+
|
949
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
950
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
951
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
952
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
953
|
+
transports_version_send: [:rest]
|
954
|
+
|
955
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
956
|
+
|
957
|
+
options.apply_defaults timeout: @config.rpcs.get_lineage_event.timeout,
|
958
|
+
metadata: call_metadata,
|
959
|
+
retry_policy: @config.rpcs.get_lineage_event.retry_policy
|
960
|
+
|
961
|
+
options.apply_defaults timeout: @config.timeout,
|
962
|
+
metadata: @config.metadata,
|
963
|
+
retry_policy: @config.retry_policy
|
964
|
+
|
965
|
+
@lineage_stub.get_lineage_event request, options do |result, operation|
|
966
|
+
yield result, operation if block_given?
|
967
|
+
return result
|
968
|
+
end
|
969
|
+
rescue ::Gapic::Rest::Error => e
|
970
|
+
raise ::Google::Cloud::Error.from_error(e)
|
971
|
+
end
|
972
|
+
|
973
|
+
##
|
974
|
+
# Lists lineage events in the given project and location. The list order is
|
975
|
+
# not defined.
|
976
|
+
#
|
977
|
+
# @overload list_lineage_events(request, options = nil)
|
978
|
+
# Pass arguments to `list_lineage_events` via a request object, either of type
|
979
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::ListLineageEventsRequest} or an equivalent Hash.
|
980
|
+
#
|
981
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::ListLineageEventsRequest, ::Hash]
|
982
|
+
# A request object representing the call parameters. Required. To specify no
|
983
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
984
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
985
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
986
|
+
#
|
987
|
+
# @overload list_lineage_events(parent: nil, page_size: nil, page_token: nil)
|
988
|
+
# Pass arguments to `list_lineage_events` via keyword arguments. Note that at
|
989
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
990
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
991
|
+
#
|
992
|
+
# @param parent [::String]
|
993
|
+
# Required. The name of the run that owns the collection of lineage events to
|
994
|
+
# get.
|
995
|
+
# @param page_size [::Integer]
|
996
|
+
# The maximum number of lineage events to return.
|
997
|
+
#
|
998
|
+
# The service may return fewer events than this value.
|
999
|
+
# If unspecified, at most 50 events are returned. The maximum value is 100;
|
1000
|
+
# values greater than 100 are cut to 100.
|
1001
|
+
# @param page_token [::String]
|
1002
|
+
# The page token received from a previous `ListLineageEvents` call. Specify
|
1003
|
+
# it to get the next page.
|
1004
|
+
#
|
1005
|
+
# When paginating, all other parameters specified in this call must
|
1006
|
+
# match the parameters of the call that provided the page token.
|
1007
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1008
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent>]
|
1009
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1010
|
+
#
|
1011
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent>]
|
1012
|
+
#
|
1013
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1014
|
+
def list_lineage_events request, options = nil
|
1015
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1016
|
+
|
1017
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::ListLineageEventsRequest
|
1018
|
+
|
1019
|
+
# Converts hash and nil to an options object
|
1020
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1021
|
+
|
1022
|
+
# Customize the options with defaults
|
1023
|
+
call_metadata = @config.rpcs.list_lineage_events.metadata.to_h
|
1024
|
+
|
1025
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1026
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1027
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1028
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1029
|
+
transports_version_send: [:rest]
|
1030
|
+
|
1031
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1032
|
+
|
1033
|
+
options.apply_defaults timeout: @config.rpcs.list_lineage_events.timeout,
|
1034
|
+
metadata: call_metadata,
|
1035
|
+
retry_policy: @config.rpcs.list_lineage_events.retry_policy
|
1036
|
+
|
1037
|
+
options.apply_defaults timeout: @config.timeout,
|
1038
|
+
metadata: @config.metadata,
|
1039
|
+
retry_policy: @config.retry_policy
|
1040
|
+
|
1041
|
+
@lineage_stub.list_lineage_events request, options do |result, operation|
|
1042
|
+
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :list_lineage_events, "lineage_events", request, result, options
|
1043
|
+
yield result, operation if block_given?
|
1044
|
+
return result
|
1045
|
+
end
|
1046
|
+
rescue ::Gapic::Rest::Error => e
|
1047
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
##
|
1051
|
+
# Deletes the lineage event with the specified name.
|
1052
|
+
#
|
1053
|
+
# @overload delete_lineage_event(request, options = nil)
|
1054
|
+
# Pass arguments to `delete_lineage_event` via a request object, either of type
|
1055
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::DeleteLineageEventRequest} or an equivalent Hash.
|
1056
|
+
#
|
1057
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::DeleteLineageEventRequest, ::Hash]
|
1058
|
+
# A request object representing the call parameters. Required. To specify no
|
1059
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1060
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1061
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1062
|
+
#
|
1063
|
+
# @overload delete_lineage_event(name: nil, allow_missing: nil)
|
1064
|
+
# Pass arguments to `delete_lineage_event` via keyword arguments. Note that at
|
1065
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1066
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1067
|
+
#
|
1068
|
+
# @param name [::String]
|
1069
|
+
# Required. The name of the lineage event to delete.
|
1070
|
+
# @param allow_missing [::Boolean]
|
1071
|
+
# If set to true and the lineage event is not found, the request
|
1072
|
+
# succeeds but the server doesn't perform any actions.
|
1073
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1074
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1075
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1076
|
+
#
|
1077
|
+
# @return [::Google::Protobuf::Empty]
|
1078
|
+
#
|
1079
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1080
|
+
def delete_lineage_event request, options = nil
|
1081
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1082
|
+
|
1083
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::DeleteLineageEventRequest
|
1084
|
+
|
1085
|
+
# Converts hash and nil to an options object
|
1086
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1087
|
+
|
1088
|
+
# Customize the options with defaults
|
1089
|
+
call_metadata = @config.rpcs.delete_lineage_event.metadata.to_h
|
1090
|
+
|
1091
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1092
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1093
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1094
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1095
|
+
transports_version_send: [:rest]
|
1096
|
+
|
1097
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1098
|
+
|
1099
|
+
options.apply_defaults timeout: @config.rpcs.delete_lineage_event.timeout,
|
1100
|
+
metadata: call_metadata,
|
1101
|
+
retry_policy: @config.rpcs.delete_lineage_event.retry_policy
|
1102
|
+
|
1103
|
+
options.apply_defaults timeout: @config.timeout,
|
1104
|
+
metadata: @config.metadata,
|
1105
|
+
retry_policy: @config.retry_policy
|
1106
|
+
|
1107
|
+
@lineage_stub.delete_lineage_event request, options do |result, operation|
|
1108
|
+
yield result, operation if block_given?
|
1109
|
+
return result
|
1110
|
+
end
|
1111
|
+
rescue ::Gapic::Rest::Error => e
|
1112
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
##
|
1116
|
+
# Retrieve a list of links connected to a specific asset.
|
1117
|
+
# Links represent the data flow between **source** (upstream)
|
1118
|
+
# and **target** (downstream) assets in transformation pipelines.
|
1119
|
+
# Links are stored in the same project as the Lineage Events that create
|
1120
|
+
# them.
|
1121
|
+
#
|
1122
|
+
# You can retrieve links in every project where you have the
|
1123
|
+
# `datalineage.events.get` permission. The project provided in the URL
|
1124
|
+
# is used for Billing and Quota.
|
1125
|
+
#
|
1126
|
+
# @overload search_links(request, options = nil)
|
1127
|
+
# Pass arguments to `search_links` via a request object, either of type
|
1128
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::SearchLinksRequest} or an equivalent Hash.
|
1129
|
+
#
|
1130
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::SearchLinksRequest, ::Hash]
|
1131
|
+
# A request object representing the call parameters. Required. To specify no
|
1132
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1133
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1134
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1135
|
+
#
|
1136
|
+
# @overload search_links(parent: nil, source: nil, target: nil, page_size: nil, page_token: nil)
|
1137
|
+
# Pass arguments to `search_links` via keyword arguments. Note that at
|
1138
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1139
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1140
|
+
#
|
1141
|
+
# @param parent [::String]
|
1142
|
+
# Required. The project and location you want search in.
|
1143
|
+
# @param source [::Google::Cloud::DataCatalog::Lineage::V1::EntityReference, ::Hash]
|
1144
|
+
# Optional. Send asset information in the **source** field to retrieve all
|
1145
|
+
# links that lead from the specified asset to downstream assets.
|
1146
|
+
# @param target [::Google::Cloud::DataCatalog::Lineage::V1::EntityReference, ::Hash]
|
1147
|
+
# Optional. Send asset information in the **target** field to retrieve all
|
1148
|
+
# links that lead from upstream assets to the specified asset.
|
1149
|
+
# @param page_size [::Integer]
|
1150
|
+
# Optional. The maximum number of links to return in a single page of the
|
1151
|
+
# response. A page may contain fewer links than this value. If unspecified,
|
1152
|
+
# at most 10 links are returned.
|
1153
|
+
#
|
1154
|
+
# Maximum value is 100; values greater than 100 are reduced to 100.
|
1155
|
+
# @param page_token [::String]
|
1156
|
+
# Optional. The page token received from a previous `SearchLinksRequest`
|
1157
|
+
# call. Use it to get the next page.
|
1158
|
+
#
|
1159
|
+
# When requesting subsequent pages of a response, remember that
|
1160
|
+
# all parameters must match the values you provided
|
1161
|
+
# in the original request.
|
1162
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1163
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Link>]
|
1164
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1165
|
+
#
|
1166
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Link>]
|
1167
|
+
#
|
1168
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1169
|
+
def search_links request, options = nil
|
1170
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1171
|
+
|
1172
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::SearchLinksRequest
|
1173
|
+
|
1174
|
+
# Converts hash and nil to an options object
|
1175
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1176
|
+
|
1177
|
+
# Customize the options with defaults
|
1178
|
+
call_metadata = @config.rpcs.search_links.metadata.to_h
|
1179
|
+
|
1180
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1181
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1182
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1183
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1184
|
+
transports_version_send: [:rest]
|
1185
|
+
|
1186
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1187
|
+
|
1188
|
+
options.apply_defaults timeout: @config.rpcs.search_links.timeout,
|
1189
|
+
metadata: call_metadata,
|
1190
|
+
retry_policy: @config.rpcs.search_links.retry_policy
|
1191
|
+
|
1192
|
+
options.apply_defaults timeout: @config.timeout,
|
1193
|
+
metadata: @config.metadata,
|
1194
|
+
retry_policy: @config.retry_policy
|
1195
|
+
|
1196
|
+
@lineage_stub.search_links request, options do |result, operation|
|
1197
|
+
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :search_links, "links", request, result, options
|
1198
|
+
yield result, operation if block_given?
|
1199
|
+
return result
|
1200
|
+
end
|
1201
|
+
rescue ::Gapic::Rest::Error => e
|
1202
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
##
|
1206
|
+
# Retrieve information about LineageProcesses associated with specific
|
1207
|
+
# links. LineageProcesses are transformation pipelines that result in data
|
1208
|
+
# flowing from **source** to **target** assets. Links between assets
|
1209
|
+
# represent this operation.
|
1210
|
+
#
|
1211
|
+
# If you have specific link names, you can use this method to
|
1212
|
+
# verify which LineageProcesses contribute to creating those links.
|
1213
|
+
# See the
|
1214
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client#search_links SearchLinks}
|
1215
|
+
# method for more information on how to retrieve link name.
|
1216
|
+
#
|
1217
|
+
# You can retrieve the LineageProcess information in every project where you
|
1218
|
+
# have the `datalineage.events.get` permission. The project provided in the
|
1219
|
+
# URL is used for Billing and Quota.
|
1220
|
+
#
|
1221
|
+
# @overload batch_search_link_processes(request, options = nil)
|
1222
|
+
# Pass arguments to `batch_search_link_processes` via a request object, either of type
|
1223
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::BatchSearchLinkProcessesRequest} or an equivalent Hash.
|
1224
|
+
#
|
1225
|
+
# @param request [::Google::Cloud::DataCatalog::Lineage::V1::BatchSearchLinkProcessesRequest, ::Hash]
|
1226
|
+
# A request object representing the call parameters. Required. To specify no
|
1227
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1228
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1229
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1230
|
+
#
|
1231
|
+
# @overload batch_search_link_processes(parent: nil, links: nil, page_size: nil, page_token: nil)
|
1232
|
+
# Pass arguments to `batch_search_link_processes` via keyword arguments. Note that at
|
1233
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1234
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1235
|
+
#
|
1236
|
+
# @param parent [::String]
|
1237
|
+
# Required. The project and location where you want to search.
|
1238
|
+
# @param links [::Array<::String>]
|
1239
|
+
# Required. An array of links to check for their associated LineageProcesses.
|
1240
|
+
#
|
1241
|
+
# The maximum number of items in this array is 100.
|
1242
|
+
# If the request contains more than 100 links, it returns the
|
1243
|
+
# `INVALID_ARGUMENT` error.
|
1244
|
+
#
|
1245
|
+
# Format: `projects/{project}/locations/{location}/links/{link}`.
|
1246
|
+
# @param page_size [::Integer]
|
1247
|
+
# The maximum number of processes to return in a single page of the response.
|
1248
|
+
# A page may contain fewer results than this value.
|
1249
|
+
# @param page_token [::String]
|
1250
|
+
# The page token received from a previous `BatchSearchLinkProcesses` call.
|
1251
|
+
# Use it to get the next page.
|
1252
|
+
#
|
1253
|
+
# When requesting subsequent pages of a response, remember that
|
1254
|
+
# all parameters must match the values you provided
|
1255
|
+
# in the original request.
|
1256
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1257
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::ProcessLinks>]
|
1258
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1259
|
+
#
|
1260
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::ProcessLinks>]
|
1261
|
+
#
|
1262
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1263
|
+
def batch_search_link_processes request, options = nil
|
1264
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1265
|
+
|
1266
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::BatchSearchLinkProcessesRequest
|
1267
|
+
|
1268
|
+
# Converts hash and nil to an options object
|
1269
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1270
|
+
|
1271
|
+
# Customize the options with defaults
|
1272
|
+
call_metadata = @config.rpcs.batch_search_link_processes.metadata.to_h
|
1273
|
+
|
1274
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1275
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1276
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1277
|
+
gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
|
1278
|
+
transports_version_send: [:rest]
|
1279
|
+
|
1280
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1281
|
+
|
1282
|
+
options.apply_defaults timeout: @config.rpcs.batch_search_link_processes.timeout,
|
1283
|
+
metadata: call_metadata,
|
1284
|
+
retry_policy: @config.rpcs.batch_search_link_processes.retry_policy
|
1285
|
+
|
1286
|
+
options.apply_defaults timeout: @config.timeout,
|
1287
|
+
metadata: @config.metadata,
|
1288
|
+
retry_policy: @config.retry_policy
|
1289
|
+
|
1290
|
+
@lineage_stub.batch_search_link_processes request, options do |result, operation|
|
1291
|
+
result = ::Gapic::Rest::PagedEnumerable.new @lineage_stub, :batch_search_link_processes, "process_links", request, result, options
|
1292
|
+
yield result, operation if block_given?
|
1293
|
+
return result
|
1294
|
+
end
|
1295
|
+
rescue ::Gapic::Rest::Error => e
|
1296
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
##
|
1300
|
+
# Configuration class for the Lineage REST API.
|
1301
|
+
#
|
1302
|
+
# This class represents the configuration for Lineage REST,
|
1303
|
+
# providing control over timeouts, retry behavior, logging, transport
|
1304
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
1305
|
+
# applied individually to specific RPCs. See
|
1306
|
+
# {::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client::Configuration::Rpcs}
|
1307
|
+
# for a list of RPCs that can be configured independently.
|
1308
|
+
#
|
1309
|
+
# Configuration can be applied globally to all clients, or to a single client
|
1310
|
+
# on construction.
|
1311
|
+
#
|
1312
|
+
# @example
|
1313
|
+
#
|
1314
|
+
# # Modify the global config, setting the timeout for
|
1315
|
+
# # create_process to 20 seconds,
|
1316
|
+
# # and all remaining timeouts to 10 seconds.
|
1317
|
+
# ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.configure do |config|
|
1318
|
+
# config.timeout = 10.0
|
1319
|
+
# config.rpcs.create_process.timeout = 20.0
|
1320
|
+
# end
|
1321
|
+
#
|
1322
|
+
# # Apply the above configuration only to a new client.
|
1323
|
+
# client = ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new do |config|
|
1324
|
+
# config.timeout = 10.0
|
1325
|
+
# config.rpcs.create_process.timeout = 20.0
|
1326
|
+
# end
|
1327
|
+
#
|
1328
|
+
# @!attribute [rw] endpoint
|
1329
|
+
# The hostname or hostname:port of the service endpoint.
|
1330
|
+
# Defaults to `"datalineage.googleapis.com"`.
|
1331
|
+
# @return [::String]
|
1332
|
+
# @!attribute [rw] credentials
|
1333
|
+
# Credentials to send with calls. You may provide any of the following types:
|
1334
|
+
# * (`String`) The path to a service account key file in JSON format
|
1335
|
+
# * (`Hash`) A service account key as a Hash
|
1336
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1337
|
+
# (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
|
1338
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1339
|
+
# (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
|
1340
|
+
# * (`nil`) indicating no credentials
|
1341
|
+
# @return [::Object]
|
1342
|
+
# @!attribute [rw] scope
|
1343
|
+
# The OAuth scopes
|
1344
|
+
# @return [::Array<::String>]
|
1345
|
+
# @!attribute [rw] lib_name
|
1346
|
+
# The library name as recorded in instrumentation and logging
|
1347
|
+
# @return [::String]
|
1348
|
+
# @!attribute [rw] lib_version
|
1349
|
+
# The library version as recorded in instrumentation and logging
|
1350
|
+
# @return [::String]
|
1351
|
+
# @!attribute [rw] timeout
|
1352
|
+
# The call timeout in seconds.
|
1353
|
+
# @return [::Numeric]
|
1354
|
+
# @!attribute [rw] metadata
|
1355
|
+
# Additional headers to be sent with the call.
|
1356
|
+
# @return [::Hash{::Symbol=>::String}]
|
1357
|
+
# @!attribute [rw] retry_policy
|
1358
|
+
# The retry policy. The value is a hash with the following keys:
|
1359
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1360
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1361
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1362
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1363
|
+
# trigger a retry.
|
1364
|
+
# @return [::Hash]
|
1365
|
+
# @!attribute [rw] quota_project
|
1366
|
+
# A separate project against which to charge quota.
|
1367
|
+
# @return [::String]
|
1368
|
+
#
|
1369
|
+
class Configuration
|
1370
|
+
extend ::Gapic::Config
|
1371
|
+
|
1372
|
+
config_attr :endpoint, "datalineage.googleapis.com", ::String
|
1373
|
+
config_attr :credentials, nil do |value|
|
1374
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1375
|
+
allowed.any? { |klass| klass === value }
|
1376
|
+
end
|
1377
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1378
|
+
config_attr :lib_name, nil, ::String, nil
|
1379
|
+
config_attr :lib_version, nil, ::String, nil
|
1380
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1381
|
+
config_attr :metadata, nil, ::Hash, nil
|
1382
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1383
|
+
config_attr :quota_project, nil, ::String, nil
|
1384
|
+
|
1385
|
+
# @private
|
1386
|
+
def initialize parent_config = nil
|
1387
|
+
@parent_config = parent_config unless parent_config.nil?
|
1388
|
+
|
1389
|
+
yield self if block_given?
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
##
|
1393
|
+
# Configurations for individual RPCs
|
1394
|
+
# @return [Rpcs]
|
1395
|
+
#
|
1396
|
+
def rpcs
|
1397
|
+
@rpcs ||= begin
|
1398
|
+
parent_rpcs = nil
|
1399
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
1400
|
+
Rpcs.new parent_rpcs
|
1401
|
+
end
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
##
|
1405
|
+
# Configuration RPC class for the Lineage API.
|
1406
|
+
#
|
1407
|
+
# Includes fields providing the configuration for each RPC in this service.
|
1408
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1409
|
+
# the following configuration fields:
|
1410
|
+
#
|
1411
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1412
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
1413
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1414
|
+
# include the following keys:
|
1415
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1416
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1417
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1418
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1419
|
+
# trigger a retry.
|
1420
|
+
#
|
1421
|
+
class Rpcs
|
1422
|
+
##
|
1423
|
+
# RPC-specific configuration for `create_process`
|
1424
|
+
# @return [::Gapic::Config::Method]
|
1425
|
+
#
|
1426
|
+
attr_reader :create_process
|
1427
|
+
##
|
1428
|
+
# RPC-specific configuration for `update_process`
|
1429
|
+
# @return [::Gapic::Config::Method]
|
1430
|
+
#
|
1431
|
+
attr_reader :update_process
|
1432
|
+
##
|
1433
|
+
# RPC-specific configuration for `get_process`
|
1434
|
+
# @return [::Gapic::Config::Method]
|
1435
|
+
#
|
1436
|
+
attr_reader :get_process
|
1437
|
+
##
|
1438
|
+
# RPC-specific configuration for `list_processes`
|
1439
|
+
# @return [::Gapic::Config::Method]
|
1440
|
+
#
|
1441
|
+
attr_reader :list_processes
|
1442
|
+
##
|
1443
|
+
# RPC-specific configuration for `delete_process`
|
1444
|
+
# @return [::Gapic::Config::Method]
|
1445
|
+
#
|
1446
|
+
attr_reader :delete_process
|
1447
|
+
##
|
1448
|
+
# RPC-specific configuration for `create_run`
|
1449
|
+
# @return [::Gapic::Config::Method]
|
1450
|
+
#
|
1451
|
+
attr_reader :create_run
|
1452
|
+
##
|
1453
|
+
# RPC-specific configuration for `update_run`
|
1454
|
+
# @return [::Gapic::Config::Method]
|
1455
|
+
#
|
1456
|
+
attr_reader :update_run
|
1457
|
+
##
|
1458
|
+
# RPC-specific configuration for `get_run`
|
1459
|
+
# @return [::Gapic::Config::Method]
|
1460
|
+
#
|
1461
|
+
attr_reader :get_run
|
1462
|
+
##
|
1463
|
+
# RPC-specific configuration for `list_runs`
|
1464
|
+
# @return [::Gapic::Config::Method]
|
1465
|
+
#
|
1466
|
+
attr_reader :list_runs
|
1467
|
+
##
|
1468
|
+
# RPC-specific configuration for `delete_run`
|
1469
|
+
# @return [::Gapic::Config::Method]
|
1470
|
+
#
|
1471
|
+
attr_reader :delete_run
|
1472
|
+
##
|
1473
|
+
# RPC-specific configuration for `create_lineage_event`
|
1474
|
+
# @return [::Gapic::Config::Method]
|
1475
|
+
#
|
1476
|
+
attr_reader :create_lineage_event
|
1477
|
+
##
|
1478
|
+
# RPC-specific configuration for `get_lineage_event`
|
1479
|
+
# @return [::Gapic::Config::Method]
|
1480
|
+
#
|
1481
|
+
attr_reader :get_lineage_event
|
1482
|
+
##
|
1483
|
+
# RPC-specific configuration for `list_lineage_events`
|
1484
|
+
# @return [::Gapic::Config::Method]
|
1485
|
+
#
|
1486
|
+
attr_reader :list_lineage_events
|
1487
|
+
##
|
1488
|
+
# RPC-specific configuration for `delete_lineage_event`
|
1489
|
+
# @return [::Gapic::Config::Method]
|
1490
|
+
#
|
1491
|
+
attr_reader :delete_lineage_event
|
1492
|
+
##
|
1493
|
+
# RPC-specific configuration for `search_links`
|
1494
|
+
# @return [::Gapic::Config::Method]
|
1495
|
+
#
|
1496
|
+
attr_reader :search_links
|
1497
|
+
##
|
1498
|
+
# RPC-specific configuration for `batch_search_link_processes`
|
1499
|
+
# @return [::Gapic::Config::Method]
|
1500
|
+
#
|
1501
|
+
attr_reader :batch_search_link_processes
|
1502
|
+
|
1503
|
+
# @private
|
1504
|
+
def initialize parent_rpcs = nil
|
1505
|
+
create_process_config = parent_rpcs.create_process if parent_rpcs.respond_to? :create_process
|
1506
|
+
@create_process = ::Gapic::Config::Method.new create_process_config
|
1507
|
+
update_process_config = parent_rpcs.update_process if parent_rpcs.respond_to? :update_process
|
1508
|
+
@update_process = ::Gapic::Config::Method.new update_process_config
|
1509
|
+
get_process_config = parent_rpcs.get_process if parent_rpcs.respond_to? :get_process
|
1510
|
+
@get_process = ::Gapic::Config::Method.new get_process_config
|
1511
|
+
list_processes_config = parent_rpcs.list_processes if parent_rpcs.respond_to? :list_processes
|
1512
|
+
@list_processes = ::Gapic::Config::Method.new list_processes_config
|
1513
|
+
delete_process_config = parent_rpcs.delete_process if parent_rpcs.respond_to? :delete_process
|
1514
|
+
@delete_process = ::Gapic::Config::Method.new delete_process_config
|
1515
|
+
create_run_config = parent_rpcs.create_run if parent_rpcs.respond_to? :create_run
|
1516
|
+
@create_run = ::Gapic::Config::Method.new create_run_config
|
1517
|
+
update_run_config = parent_rpcs.update_run if parent_rpcs.respond_to? :update_run
|
1518
|
+
@update_run = ::Gapic::Config::Method.new update_run_config
|
1519
|
+
get_run_config = parent_rpcs.get_run if parent_rpcs.respond_to? :get_run
|
1520
|
+
@get_run = ::Gapic::Config::Method.new get_run_config
|
1521
|
+
list_runs_config = parent_rpcs.list_runs if parent_rpcs.respond_to? :list_runs
|
1522
|
+
@list_runs = ::Gapic::Config::Method.new list_runs_config
|
1523
|
+
delete_run_config = parent_rpcs.delete_run if parent_rpcs.respond_to? :delete_run
|
1524
|
+
@delete_run = ::Gapic::Config::Method.new delete_run_config
|
1525
|
+
create_lineage_event_config = parent_rpcs.create_lineage_event if parent_rpcs.respond_to? :create_lineage_event
|
1526
|
+
@create_lineage_event = ::Gapic::Config::Method.new create_lineage_event_config
|
1527
|
+
get_lineage_event_config = parent_rpcs.get_lineage_event if parent_rpcs.respond_to? :get_lineage_event
|
1528
|
+
@get_lineage_event = ::Gapic::Config::Method.new get_lineage_event_config
|
1529
|
+
list_lineage_events_config = parent_rpcs.list_lineage_events if parent_rpcs.respond_to? :list_lineage_events
|
1530
|
+
@list_lineage_events = ::Gapic::Config::Method.new list_lineage_events_config
|
1531
|
+
delete_lineage_event_config = parent_rpcs.delete_lineage_event if parent_rpcs.respond_to? :delete_lineage_event
|
1532
|
+
@delete_lineage_event = ::Gapic::Config::Method.new delete_lineage_event_config
|
1533
|
+
search_links_config = parent_rpcs.search_links if parent_rpcs.respond_to? :search_links
|
1534
|
+
@search_links = ::Gapic::Config::Method.new search_links_config
|
1535
|
+
batch_search_link_processes_config = parent_rpcs.batch_search_link_processes if parent_rpcs.respond_to? :batch_search_link_processes
|
1536
|
+
@batch_search_link_processes = ::Gapic::Config::Method.new batch_search_link_processes_config
|
1537
|
+
|
1538
|
+
yield self if block_given?
|
1539
|
+
end
|
1540
|
+
end
|
1541
|
+
end
|
1542
|
+
end
|
1543
|
+
end
|
1544
|
+
end
|
1545
|
+
end
|
1546
|
+
end
|
1547
|
+
end
|
1548
|
+
end
|
1549
|
+
end
|