google-cloud-data_catalog-lineage-v1 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -157,6 +157,95 @@ module Google
157
157
 
158
158
  # Service calls
159
159
 
160
+ ##
161
+ # Creates new lineage events together with their parents: process and run.
162
+ # Updates the process and run if they already exist.
163
+ # Mapped from Open Lineage specification:
164
+ # https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json.
165
+ #
166
+ # @overload process_open_lineage_run_event(request, options = nil)
167
+ # Pass arguments to `process_open_lineage_run_event` via a request object, either of type
168
+ # {::Google::Cloud::DataCatalog::Lineage::V1::ProcessOpenLineageRunEventRequest} or an equivalent Hash.
169
+ #
170
+ # @param request [::Google::Cloud::DataCatalog::Lineage::V1::ProcessOpenLineageRunEventRequest, ::Hash]
171
+ # A request object representing the call parameters. Required. To specify no
172
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
173
+ # @param options [::Gapic::CallOptions, ::Hash]
174
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
175
+ #
176
+ # @overload process_open_lineage_run_event(parent: nil, open_lineage: nil, request_id: nil)
177
+ # Pass arguments to `process_open_lineage_run_event` via keyword arguments. Note that at
178
+ # least one keyword argument is required. To specify no parameters, or to keep all
179
+ # the default parameter values, pass an empty Hash as a request object (see above).
180
+ #
181
+ # @param parent [::String]
182
+ # Required. The name of the project and its location that should own the
183
+ # process, run, and lineage event.
184
+ # @param open_lineage [::Google::Protobuf::Struct, ::Hash]
185
+ # Required. OpenLineage message following OpenLineage format:
186
+ # https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json
187
+ # @param request_id [::String]
188
+ # A unique identifier for this request. Restricted to 36 ASCII characters.
189
+ # A random UUID is recommended. This request is idempotent only if a
190
+ # `request_id` is provided.
191
+ # @yield [result, operation] Access the result along with the TransportOperation object
192
+ # @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::ProcessOpenLineageRunEventResponse]
193
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
194
+ #
195
+ # @return [::Google::Cloud::DataCatalog::Lineage::V1::ProcessOpenLineageRunEventResponse]
196
+ #
197
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
198
+ #
199
+ # @example Basic example
200
+ # require "google/cloud/data_catalog/lineage/v1"
201
+ #
202
+ # # Create a client object. The client can be reused for multiple calls.
203
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
204
+ #
205
+ # # Create a request. To set request fields, pass in keyword arguments.
206
+ # request = Google::Cloud::DataCatalog::Lineage::V1::ProcessOpenLineageRunEventRequest.new
207
+ #
208
+ # # Call the process_open_lineage_run_event method.
209
+ # result = client.process_open_lineage_run_event request
210
+ #
211
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::ProcessOpenLineageRunEventResponse.
212
+ # p result
213
+ #
214
+ def process_open_lineage_run_event request, options = nil
215
+ raise ::ArgumentError, "request must be provided" if request.nil?
216
+
217
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::Lineage::V1::ProcessOpenLineageRunEventRequest
218
+
219
+ # Converts hash and nil to an options object
220
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
221
+
222
+ # Customize the options with defaults
223
+ call_metadata = @config.rpcs.process_open_lineage_run_event.metadata.to_h
224
+
225
+ # Set x-goog-api-client and x-goog-user-project headers
226
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
227
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
228
+ gapic_version: ::Google::Cloud::DataCatalog::Lineage::V1::VERSION,
229
+ transports_version_send: [:rest]
230
+
231
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
+
233
+ options.apply_defaults timeout: @config.rpcs.process_open_lineage_run_event.timeout,
234
+ metadata: call_metadata,
235
+ retry_policy: @config.rpcs.process_open_lineage_run_event.retry_policy
236
+
237
+ options.apply_defaults timeout: @config.timeout,
238
+ metadata: @config.metadata,
239
+ retry_policy: @config.retry_policy
240
+
241
+ @lineage_stub.process_open_lineage_run_event request, options do |result, operation|
242
+ yield result, operation if block_given?
243
+ return result
244
+ end
245
+ rescue ::Gapic::Rest::Error => e
246
+ raise ::Google::Cloud::Error.from_error(e)
247
+ end
248
+
160
249
  ##
161
250
  # Creates a new process.
162
251
  #
@@ -191,6 +280,22 @@ module Google
191
280
  # @return [::Google::Cloud::DataCatalog::Lineage::V1::Process]
192
281
  #
193
282
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
283
+ #
284
+ # @example Basic example
285
+ # require "google/cloud/data_catalog/lineage/v1"
286
+ #
287
+ # # Create a client object. The client can be reused for multiple calls.
288
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
289
+ #
290
+ # # Create a request. To set request fields, pass in keyword arguments.
291
+ # request = Google::Cloud::DataCatalog::Lineage::V1::CreateProcessRequest.new
292
+ #
293
+ # # Call the create_process method.
294
+ # result = client.create_process request
295
+ #
296
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::Process.
297
+ # p result
298
+ #
194
299
  def create_process request, options = nil
195
300
  raise ::ArgumentError, "request must be provided" if request.nil?
196
301
 
@@ -260,6 +365,22 @@ module Google
260
365
  # @return [::Google::Cloud::DataCatalog::Lineage::V1::Process]
261
366
  #
262
367
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
368
+ #
369
+ # @example Basic example
370
+ # require "google/cloud/data_catalog/lineage/v1"
371
+ #
372
+ # # Create a client object. The client can be reused for multiple calls.
373
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
374
+ #
375
+ # # Create a request. To set request fields, pass in keyword arguments.
376
+ # request = Google::Cloud::DataCatalog::Lineage::V1::UpdateProcessRequest.new
377
+ #
378
+ # # Call the update_process method.
379
+ # result = client.update_process request
380
+ #
381
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::Process.
382
+ # p result
383
+ #
263
384
  def update_process request, options = nil
264
385
  raise ::ArgumentError, "request must be provided" if request.nil?
265
386
 
@@ -322,6 +443,22 @@ module Google
322
443
  # @return [::Google::Cloud::DataCatalog::Lineage::V1::Process]
323
444
  #
324
445
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
446
+ #
447
+ # @example Basic example
448
+ # require "google/cloud/data_catalog/lineage/v1"
449
+ #
450
+ # # Create a client object. The client can be reused for multiple calls.
451
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
452
+ #
453
+ # # Create a request. To set request fields, pass in keyword arguments.
454
+ # request = Google::Cloud::DataCatalog::Lineage::V1::GetProcessRequest.new
455
+ #
456
+ # # Call the get_process method.
457
+ # result = client.get_process request
458
+ #
459
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::Process.
460
+ # p result
461
+ #
325
462
  def get_process request, options = nil
326
463
  raise ::ArgumentError, "request must be provided" if request.nil?
327
464
 
@@ -397,6 +534,26 @@ module Google
397
534
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Process>]
398
535
  #
399
536
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
537
+ #
538
+ # @example Basic example
539
+ # require "google/cloud/data_catalog/lineage/v1"
540
+ #
541
+ # # Create a client object. The client can be reused for multiple calls.
542
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
543
+ #
544
+ # # Create a request. To set request fields, pass in keyword arguments.
545
+ # request = Google::Cloud::DataCatalog::Lineage::V1::ListProcessesRequest.new
546
+ #
547
+ # # Call the list_processes method.
548
+ # result = client.list_processes request
549
+ #
550
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
551
+ # # over elements, and API calls will be issued to fetch pages as needed.
552
+ # result.each do |item|
553
+ # # Each element is of type ::Google::Cloud::DataCatalog::Lineage::V1::Process.
554
+ # p item
555
+ # end
556
+ #
400
557
  def list_processes request, options = nil
401
558
  raise ::ArgumentError, "request must be provided" if request.nil?
402
559
 
@@ -463,6 +620,29 @@ module Google
463
620
  # @return [::Gapic::Operation]
464
621
  #
465
622
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
623
+ #
624
+ # @example Basic example
625
+ # require "google/cloud/data_catalog/lineage/v1"
626
+ #
627
+ # # Create a client object. The client can be reused for multiple calls.
628
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
629
+ #
630
+ # # Create a request. To set request fields, pass in keyword arguments.
631
+ # request = Google::Cloud::DataCatalog::Lineage::V1::DeleteProcessRequest.new
632
+ #
633
+ # # Call the delete_process method.
634
+ # result = client.delete_process request
635
+ #
636
+ # # The returned object is of type Gapic::Operation. You can use it to
637
+ # # check the status of an operation, cancel it, or wait for results.
638
+ # # Here is how to wait for a response.
639
+ # result.wait_until_done! timeout: 60
640
+ # if result.response?
641
+ # p result.response
642
+ # else
643
+ # puts "No response received."
644
+ # end
645
+ #
466
646
  def delete_process request, options = nil
467
647
  raise ::ArgumentError, "request must be provided" if request.nil?
468
648
 
@@ -532,6 +712,22 @@ module Google
532
712
  # @return [::Google::Cloud::DataCatalog::Lineage::V1::Run]
533
713
  #
534
714
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
715
+ #
716
+ # @example Basic example
717
+ # require "google/cloud/data_catalog/lineage/v1"
718
+ #
719
+ # # Create a client object. The client can be reused for multiple calls.
720
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
721
+ #
722
+ # # Create a request. To set request fields, pass in keyword arguments.
723
+ # request = Google::Cloud::DataCatalog::Lineage::V1::CreateRunRequest.new
724
+ #
725
+ # # Call the create_run method.
726
+ # result = client.create_run request
727
+ #
728
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::Run.
729
+ # p result
730
+ #
535
731
  def create_run request, options = nil
536
732
  raise ::ArgumentError, "request must be provided" if request.nil?
537
733
 
@@ -580,7 +776,7 @@ module Google
580
776
  # @param options [::Gapic::CallOptions, ::Hash]
581
777
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
582
778
  #
583
- # @overload update_run(run: nil, update_mask: nil)
779
+ # @overload update_run(run: nil, update_mask: nil, allow_missing: nil)
584
780
  # Pass arguments to `update_run` via keyword arguments. Note that at
585
781
  # least one keyword argument is required. To specify no parameters, or to keep all
586
782
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -595,6 +791,8 @@ module Google
595
791
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
596
792
  # The list of fields to update. Currently not used. The whole message is
597
793
  # updated.
794
+ # @param allow_missing [::Boolean]
795
+ # If set to true and the run is not found, the request creates it.
598
796
  # @yield [result, operation] Access the result along with the TransportOperation object
599
797
  # @yieldparam result [::Google::Cloud::DataCatalog::Lineage::V1::Run]
600
798
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -602,6 +800,22 @@ module Google
602
800
  # @return [::Google::Cloud::DataCatalog::Lineage::V1::Run]
603
801
  #
604
802
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
803
+ #
804
+ # @example Basic example
805
+ # require "google/cloud/data_catalog/lineage/v1"
806
+ #
807
+ # # Create a client object. The client can be reused for multiple calls.
808
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
809
+ #
810
+ # # Create a request. To set request fields, pass in keyword arguments.
811
+ # request = Google::Cloud::DataCatalog::Lineage::V1::UpdateRunRequest.new
812
+ #
813
+ # # Call the update_run method.
814
+ # result = client.update_run request
815
+ #
816
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::Run.
817
+ # p result
818
+ #
605
819
  def update_run request, options = nil
606
820
  raise ::ArgumentError, "request must be provided" if request.nil?
607
821
 
@@ -664,6 +878,22 @@ module Google
664
878
  # @return [::Google::Cloud::DataCatalog::Lineage::V1::Run]
665
879
  #
666
880
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
881
+ #
882
+ # @example Basic example
883
+ # require "google/cloud/data_catalog/lineage/v1"
884
+ #
885
+ # # Create a client object. The client can be reused for multiple calls.
886
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
887
+ #
888
+ # # Create a request. To set request fields, pass in keyword arguments.
889
+ # request = Google::Cloud::DataCatalog::Lineage::V1::GetRunRequest.new
890
+ #
891
+ # # Call the get_run method.
892
+ # result = client.get_run request
893
+ #
894
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::Run.
895
+ # p result
896
+ #
667
897
  def get_run request, options = nil
668
898
  raise ::ArgumentError, "request must be provided" if request.nil?
669
899
 
@@ -738,6 +968,26 @@ module Google
738
968
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Run>]
739
969
  #
740
970
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
971
+ #
972
+ # @example Basic example
973
+ # require "google/cloud/data_catalog/lineage/v1"
974
+ #
975
+ # # Create a client object. The client can be reused for multiple calls.
976
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
977
+ #
978
+ # # Create a request. To set request fields, pass in keyword arguments.
979
+ # request = Google::Cloud::DataCatalog::Lineage::V1::ListRunsRequest.new
980
+ #
981
+ # # Call the list_runs method.
982
+ # result = client.list_runs request
983
+ #
984
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
985
+ # # over elements, and API calls will be issued to fetch pages as needed.
986
+ # result.each do |item|
987
+ # # Each element is of type ::Google::Cloud::DataCatalog::Lineage::V1::Run.
988
+ # p item
989
+ # end
990
+ #
741
991
  def list_runs request, options = nil
742
992
  raise ::ArgumentError, "request must be provided" if request.nil?
743
993
 
@@ -804,6 +1054,29 @@ module Google
804
1054
  # @return [::Gapic::Operation]
805
1055
  #
806
1056
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1057
+ #
1058
+ # @example Basic example
1059
+ # require "google/cloud/data_catalog/lineage/v1"
1060
+ #
1061
+ # # Create a client object. The client can be reused for multiple calls.
1062
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
1063
+ #
1064
+ # # Create a request. To set request fields, pass in keyword arguments.
1065
+ # request = Google::Cloud::DataCatalog::Lineage::V1::DeleteRunRequest.new
1066
+ #
1067
+ # # Call the delete_run method.
1068
+ # result = client.delete_run request
1069
+ #
1070
+ # # The returned object is of type Gapic::Operation. You can use it to
1071
+ # # check the status of an operation, cancel it, or wait for results.
1072
+ # # Here is how to wait for a response.
1073
+ # result.wait_until_done! timeout: 60
1074
+ # if result.response?
1075
+ # p result.response
1076
+ # else
1077
+ # puts "No response received."
1078
+ # end
1079
+ #
807
1080
  def delete_run request, options = nil
808
1081
  raise ::ArgumentError, "request must be provided" if request.nil?
809
1082
 
@@ -873,6 +1146,22 @@ module Google
873
1146
  # @return [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent]
874
1147
  #
875
1148
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1149
+ #
1150
+ # @example Basic example
1151
+ # require "google/cloud/data_catalog/lineage/v1"
1152
+ #
1153
+ # # Create a client object. The client can be reused for multiple calls.
1154
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
1155
+ #
1156
+ # # Create a request. To set request fields, pass in keyword arguments.
1157
+ # request = Google::Cloud::DataCatalog::Lineage::V1::CreateLineageEventRequest.new
1158
+ #
1159
+ # # Call the create_lineage_event method.
1160
+ # result = client.create_lineage_event request
1161
+ #
1162
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::LineageEvent.
1163
+ # p result
1164
+ #
876
1165
  def create_lineage_event request, options = nil
877
1166
  raise ::ArgumentError, "request must be provided" if request.nil?
878
1167
 
@@ -935,6 +1224,22 @@ module Google
935
1224
  # @return [::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent]
936
1225
  #
937
1226
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1227
+ #
1228
+ # @example Basic example
1229
+ # require "google/cloud/data_catalog/lineage/v1"
1230
+ #
1231
+ # # Create a client object. The client can be reused for multiple calls.
1232
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
1233
+ #
1234
+ # # Create a request. To set request fields, pass in keyword arguments.
1235
+ # request = Google::Cloud::DataCatalog::Lineage::V1::GetLineageEventRequest.new
1236
+ #
1237
+ # # Call the get_lineage_event method.
1238
+ # result = client.get_lineage_event request
1239
+ #
1240
+ # # The returned object is of type Google::Cloud::DataCatalog::Lineage::V1::LineageEvent.
1241
+ # p result
1242
+ #
938
1243
  def get_lineage_event request, options = nil
939
1244
  raise ::ArgumentError, "request must be provided" if request.nil?
940
1245
 
@@ -1011,6 +1316,26 @@ module Google
1011
1316
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent>]
1012
1317
  #
1013
1318
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1319
+ #
1320
+ # @example Basic example
1321
+ # require "google/cloud/data_catalog/lineage/v1"
1322
+ #
1323
+ # # Create a client object. The client can be reused for multiple calls.
1324
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
1325
+ #
1326
+ # # Create a request. To set request fields, pass in keyword arguments.
1327
+ # request = Google::Cloud::DataCatalog::Lineage::V1::ListLineageEventsRequest.new
1328
+ #
1329
+ # # Call the list_lineage_events method.
1330
+ # result = client.list_lineage_events request
1331
+ #
1332
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1333
+ # # over elements, and API calls will be issued to fetch pages as needed.
1334
+ # result.each do |item|
1335
+ # # Each element is of type ::Google::Cloud::DataCatalog::Lineage::V1::LineageEvent.
1336
+ # p item
1337
+ # end
1338
+ #
1014
1339
  def list_lineage_events request, options = nil
1015
1340
  raise ::ArgumentError, "request must be provided" if request.nil?
1016
1341
 
@@ -1077,6 +1402,22 @@ module Google
1077
1402
  # @return [::Google::Protobuf::Empty]
1078
1403
  #
1079
1404
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1405
+ #
1406
+ # @example Basic example
1407
+ # require "google/cloud/data_catalog/lineage/v1"
1408
+ #
1409
+ # # Create a client object. The client can be reused for multiple calls.
1410
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
1411
+ #
1412
+ # # Create a request. To set request fields, pass in keyword arguments.
1413
+ # request = Google::Cloud::DataCatalog::Lineage::V1::DeleteLineageEventRequest.new
1414
+ #
1415
+ # # Call the delete_lineage_event method.
1416
+ # result = client.delete_lineage_event request
1417
+ #
1418
+ # # The returned object is of type Google::Protobuf::Empty.
1419
+ # p result
1420
+ #
1080
1421
  def delete_lineage_event request, options = nil
1081
1422
  raise ::ArgumentError, "request must be provided" if request.nil?
1082
1423
 
@@ -1139,7 +1480,7 @@ module Google
1139
1480
  # the default parameter values, pass an empty Hash as a request object (see above).
1140
1481
  #
1141
1482
  # @param parent [::String]
1142
- # Required. The project and location you want search in the format `projects/*/locations/*`
1483
+ # Required. The project and location you want search in.
1143
1484
  # @param source [::Google::Cloud::DataCatalog::Lineage::V1::EntityReference, ::Hash]
1144
1485
  # Optional. Send asset information in the **source** field to retrieve all
1145
1486
  # links that lead from the specified asset to downstream assets.
@@ -1166,6 +1507,26 @@ module Google
1166
1507
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::Link>]
1167
1508
  #
1168
1509
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1510
+ #
1511
+ # @example Basic example
1512
+ # require "google/cloud/data_catalog/lineage/v1"
1513
+ #
1514
+ # # Create a client object. The client can be reused for multiple calls.
1515
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
1516
+ #
1517
+ # # Create a request. To set request fields, pass in keyword arguments.
1518
+ # request = Google::Cloud::DataCatalog::Lineage::V1::SearchLinksRequest.new
1519
+ #
1520
+ # # Call the search_links method.
1521
+ # result = client.search_links request
1522
+ #
1523
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1524
+ # # over elements, and API calls will be issued to fetch pages as needed.
1525
+ # result.each do |item|
1526
+ # # Each element is of type ::Google::Cloud::DataCatalog::Lineage::V1::Link.
1527
+ # p item
1528
+ # end
1529
+ #
1169
1530
  def search_links request, options = nil
1170
1531
  raise ::ArgumentError, "request must be provided" if request.nil?
1171
1532
 
@@ -1234,7 +1595,7 @@ module Google
1234
1595
  # the default parameter values, pass an empty Hash as a request object (see above).
1235
1596
  #
1236
1597
  # @param parent [::String]
1237
- # Required. The project and location you want search in the format `projects/*/locations/*`
1598
+ # Required. The project and location where you want to search.
1238
1599
  # @param links [::Array<::String>]
1239
1600
  # Required. An array of links to check for their associated LineageProcesses.
1240
1601
  #
@@ -1260,6 +1621,26 @@ module Google
1260
1621
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::Lineage::V1::ProcessLinks>]
1261
1622
  #
1262
1623
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1624
+ #
1625
+ # @example Basic example
1626
+ # require "google/cloud/data_catalog/lineage/v1"
1627
+ #
1628
+ # # Create a client object. The client can be reused for multiple calls.
1629
+ # client = Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new
1630
+ #
1631
+ # # Create a request. To set request fields, pass in keyword arguments.
1632
+ # request = Google::Cloud::DataCatalog::Lineage::V1::BatchSearchLinkProcessesRequest.new
1633
+ #
1634
+ # # Call the batch_search_link_processes method.
1635
+ # result = client.batch_search_link_processes request
1636
+ #
1637
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1638
+ # # over elements, and API calls will be issued to fetch pages as needed.
1639
+ # result.each do |item|
1640
+ # # Each element is of type ::Google::Cloud::DataCatalog::Lineage::V1::ProcessLinks.
1641
+ # p item
1642
+ # end
1643
+ #
1263
1644
  def batch_search_link_processes request, options = nil
1264
1645
  raise ::ArgumentError, "request must be provided" if request.nil?
1265
1646
 
@@ -1312,17 +1693,17 @@ module Google
1312
1693
  # @example
1313
1694
  #
1314
1695
  # # Modify the global config, setting the timeout for
1315
- # # create_process to 20 seconds,
1696
+ # # process_open_lineage_run_event to 20 seconds,
1316
1697
  # # and all remaining timeouts to 10 seconds.
1317
1698
  # ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.configure do |config|
1318
1699
  # config.timeout = 10.0
1319
- # config.rpcs.create_process.timeout = 20.0
1700
+ # config.rpcs.process_open_lineage_run_event.timeout = 20.0
1320
1701
  # end
1321
1702
  #
1322
1703
  # # Apply the above configuration only to a new client.
1323
1704
  # client = ::Google::Cloud::DataCatalog::Lineage::V1::Lineage::Rest::Client.new do |config|
1324
1705
  # config.timeout = 10.0
1325
- # config.rpcs.create_process.timeout = 20.0
1706
+ # config.rpcs.process_open_lineage_run_event.timeout = 20.0
1326
1707
  # end
1327
1708
  #
1328
1709
  # @!attribute [rw] endpoint
@@ -1421,6 +1802,11 @@ module Google
1421
1802
  # trigger a retry.
1422
1803
  #
1423
1804
  class Rpcs
1805
+ ##
1806
+ # RPC-specific configuration for `process_open_lineage_run_event`
1807
+ # @return [::Gapic::Config::Method]
1808
+ #
1809
+ attr_reader :process_open_lineage_run_event
1424
1810
  ##
1425
1811
  # RPC-specific configuration for `create_process`
1426
1812
  # @return [::Gapic::Config::Method]
@@ -1504,6 +1890,8 @@ module Google
1504
1890
 
1505
1891
  # @private
1506
1892
  def initialize parent_rpcs = nil
1893
+ process_open_lineage_run_event_config = parent_rpcs.process_open_lineage_run_event if parent_rpcs.respond_to? :process_open_lineage_run_event
1894
+ @process_open_lineage_run_event = ::Gapic::Config::Method.new process_open_lineage_run_event_config
1507
1895
  create_process_config = parent_rpcs.create_process if parent_rpcs.respond_to? :create_process
1508
1896
  @create_process = ::Gapic::Config::Method.new create_process_config
1509
1897
  update_process_config = parent_rpcs.update_process if parent_rpcs.respond_to? :update_process
@@ -137,6 +137,26 @@ module Google
137
137
  # @return [::Gapic::Operation]
138
138
  #
139
139
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
140
+ #
141
+ # @example Basic example
142
+ # require "google/longrunning"
143
+ #
144
+ # # Create a client object. The client can be reused for multiple calls.
145
+ # client = Google::Longrunning::Operations::Rest::Client.new
146
+ #
147
+ # # Create a request. To set request fields, pass in keyword arguments.
148
+ # request = Google::Longrunning::ListOperationsRequest.new
149
+ #
150
+ # # Call the list_operations method.
151
+ # result = client.list_operations request
152
+ #
153
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
154
+ # # over elements, and API calls will be issued to fetch pages as needed.
155
+ # result.each do |item|
156
+ # # Each element is of type ::Google::Longrunning::Operation.
157
+ # p item
158
+ # end
159
+ #
140
160
  def list_operations request, options = nil
141
161
  raise ::ArgumentError, "request must be provided" if request.nil?
142
162
 
@@ -202,6 +222,29 @@ module Google
202
222
  # @return [::Gapic::Operation]
203
223
  #
204
224
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
225
+ #
226
+ # @example Basic example
227
+ # require "google/longrunning"
228
+ #
229
+ # # Create a client object. The client can be reused for multiple calls.
230
+ # client = Google::Longrunning::Operations::Rest::Client.new
231
+ #
232
+ # # Create a request. To set request fields, pass in keyword arguments.
233
+ # request = Google::Longrunning::GetOperationRequest.new
234
+ #
235
+ # # Call the get_operation method.
236
+ # result = client.get_operation request
237
+ #
238
+ # # The returned object is of type Gapic::Operation. You can use it to
239
+ # # check the status of an operation, cancel it, or wait for results.
240
+ # # Here is how to wait for a response.
241
+ # result.wait_until_done! timeout: 60
242
+ # if result.response?
243
+ # p result.response
244
+ # else
245
+ # puts "No response received."
246
+ # end
247
+ #
205
248
  def get_operation request, options = nil
206
249
  raise ::ArgumentError, "request must be provided" if request.nil?
207
250
 
@@ -268,6 +311,22 @@ module Google
268
311
  # @return [::Google::Protobuf::Empty]
269
312
  #
270
313
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
314
+ #
315
+ # @example Basic example
316
+ # require "google/longrunning"
317
+ #
318
+ # # Create a client object. The client can be reused for multiple calls.
319
+ # client = Google::Longrunning::Operations::Rest::Client.new
320
+ #
321
+ # # Create a request. To set request fields, pass in keyword arguments.
322
+ # request = Google::Longrunning::DeleteOperationRequest.new
323
+ #
324
+ # # Call the delete_operation method.
325
+ # result = client.delete_operation request
326
+ #
327
+ # # The returned object is of type Google::Protobuf::Empty.
328
+ # p result
329
+ #
271
330
  def delete_operation request, options = nil
272
331
  raise ::ArgumentError, "request must be provided" if request.nil?
273
332
 
@@ -339,6 +398,22 @@ module Google
339
398
  # @return [::Google::Protobuf::Empty]
340
399
  #
341
400
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
401
+ #
402
+ # @example Basic example
403
+ # require "google/longrunning"
404
+ #
405
+ # # Create a client object. The client can be reused for multiple calls.
406
+ # client = Google::Longrunning::Operations::Rest::Client.new
407
+ #
408
+ # # Create a request. To set request fields, pass in keyword arguments.
409
+ # request = Google::Longrunning::CancelOperationRequest.new
410
+ #
411
+ # # Call the cancel_operation method.
412
+ # result = client.cancel_operation request
413
+ #
414
+ # # The returned object is of type Google::Protobuf::Empty.
415
+ # p result
416
+ #
342
417
  def cancel_operation request, options = nil
343
418
  raise ::ArgumentError, "request must be provided" if request.nil?
344
419