google-apis-datalineage_v1 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93d88e4456debacf6eafedc439519b82d876b54e3408d18089a3c7e6e16136fb
4
- data.tar.gz: 8367456d1f9807328a6d058829f3740996774ca79fcb939af488b2ad282036db
3
+ metadata.gz: a5505feb1e591f7e8dea8e0e07326c9db3f6cfa0b1967e2cac920cb2ff3cfd91
4
+ data.tar.gz: c7bc7119af6dbcc51cd5cea741f1ee2da56ddfc223980af9adeac9ccec9fed8c
5
5
  SHA512:
6
- metadata.gz: 9e77b70cf932d42d47d535361731781e6013556d99d6089143bd77173fd174abd1a11544e657e17694846ae50b3223f778be82634226ec804e3b872ddd36d691
7
- data.tar.gz: bf7bf8ff66baf2d29d1336b6feff5195bd4f994e0bf3942c50d81489b5444f019a0c2442792e3566c19fb0045ef830a17f472f9c2d9e400e310aab55422c83ab
6
+ metadata.gz: cc98fa894f6256a4351116b051dac82c3027aa54e47e7da05b2a6c9201aa39bd4951043d71e2eb6980171a1b037dbeb5ee1ae264d6dad5ca4a0351fb5f724467
7
+ data.tar.gz: d2c5016acc3eea448206ccd21f1fc9c2b31b2a84fbc2d899d3a7b7a8275a67070eea69e51b4bd7447b7794d249a44b96cf7cb454a9a62273e20e04591cc8ba4f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-datalineage_v1
2
2
 
3
+ ### v0.5.0 (2025-01-08)
4
+
5
+ * Regenerated from discovery document revision 20241202
6
+ * Regenerated using generator version 0.15.1
7
+
8
+ ### v0.4.0 (2023-07-02)
9
+
10
+ * Regenerated from discovery document revision 20230623
11
+
3
12
  ### v0.3.0 (2023-05-28)
4
13
 
5
14
  * Regenerated from discovery document revision 20230519
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/data-catalog) may provide g
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -157,7 +157,7 @@ module Google
157
157
  # @return [String]
158
158
  attr_accessor :name
159
159
 
160
- # Optional. The beginning of the transformation which resulted in this lineage
160
+ # Required. The beginning of the transformation which resulted in this lineage
161
161
  # event. For streaming scenarios, it should be the beginning of the period from
162
162
  # which the lineage is being reported.
163
163
  # Corresponds to the JSON property `startTime`
@@ -368,8 +368,9 @@ module Google
368
368
  attr_accessor :name
369
369
 
370
370
  # Type of the source. Use of a source_type other than `CUSTOM` for process
371
- # creation or updating is highly discouraged, and may be restricted in the
372
- # future without notice.
371
+ # creation or updating is highly discouraged. It might be restricted in the
372
+ # future without notice. There will be increase in cost if you use any of the
373
+ # source types other than `CUSTOM`.
373
374
  # Corresponds to the JSON property `sourceType`
374
375
  # @return [String]
375
376
  attr_accessor :source_type
@@ -490,6 +491,40 @@ module Google
490
491
  end
491
492
  end
492
493
 
494
+ # Response message for ProcessOpenLineageRunEvent.
495
+ class GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
496
+ include Google::Apis::Core::Hashable
497
+
498
+ # Created lineage event names. Format: `projects/`project`/locations/`location`/
499
+ # processes/`process`/runs/`run`/lineageEvents/`lineage_event``.
500
+ # Corresponds to the JSON property `lineageEvents`
501
+ # @return [Array<String>]
502
+ attr_accessor :lineage_events
503
+
504
+ # Created process name. Format: `projects/`project`/locations/`location`/
505
+ # processes/`process``.
506
+ # Corresponds to the JSON property `process`
507
+ # @return [String]
508
+ attr_accessor :process
509
+
510
+ # Created run name. Format: `projects/`project`/locations/`location`/processes/`
511
+ # process`/runs/`run``.
512
+ # Corresponds to the JSON property `run`
513
+ # @return [String]
514
+ attr_accessor :run
515
+
516
+ def initialize(**args)
517
+ update!(**args)
518
+ end
519
+
520
+ # Update properties of this object
521
+ def update!(**args)
522
+ @lineage_events = args[:lineage_events] if args.key?(:lineage_events)
523
+ @process = args[:process] if args.key?(:process)
524
+ @run = args[:run] if args.key?(:run)
525
+ end
526
+ end
527
+
493
528
  # A lineage run represents an execution of a process that creates lineage events.
494
529
  class GoogleCloudDatacatalogLineageV1Run
495
530
  include Google::Apis::Core::Hashable
@@ -691,13 +726,13 @@ module Google
691
726
  # @return [String]
692
727
  attr_accessor :name
693
728
 
694
- # The normal response of the operation in case of success. If the original
695
- # method returns no data on success, such as `Delete`, the response is `google.
696
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
697
- # the response should be the resource. For other methods, the response should
698
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
699
- # example, if the original method name is `TakeSnapshot()`, the inferred
700
- # response type is `TakeSnapshotResponse`.
729
+ # The normal, successful response of the operation. If the original method
730
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
731
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
732
+ # response should be the resource. For other methods, the response should have
733
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
734
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
735
+ # `TakeSnapshotResponse`.
701
736
  # Corresponds to the JSON property `response`
702
737
  # @return [Hash<String,Object>]
703
738
  attr_accessor :response
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DatalineageV1
18
18
  # Version of the google-apis-datalineage_v1 gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230519"
25
+ REVISION = "20241202"
26
26
  end
27
27
  end
28
28
  end
@@ -106,6 +106,12 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
109
115
  class GoogleCloudDatacatalogLineageV1Run
110
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
117
 
@@ -289,6 +295,15 @@ module Google
289
295
  end
290
296
  end
291
297
 
298
+ class GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ collection :lineage_events, as: 'lineageEvents'
302
+ property :process, as: 'process'
303
+ property :run, as: 'run'
304
+ end
305
+ end
306
+
292
307
  class GoogleCloudDatacatalogLineageV1Run
293
308
  # @private
294
309
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/data-catalog
34
34
  class DatalineageService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://datalineage.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://datalineage.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-datalineage_v1',
48
50
  client_version: Google::Apis::DatalineageV1::GEM_VERSION)
49
51
  @batch_path = 'batch'
@@ -90,6 +92,45 @@ module Google
90
92
  execute_or_queue_command(command, &block)
91
93
  end
92
94
 
95
+ # Creates new lineage events together with their parents: process and run.
96
+ # Updates the process and run if they already exist. Mapped from Open Lineage
97
+ # specification: https://github.com/OpenLineage/OpenLineage/blob/main/spec/
98
+ # OpenLineage.json.
99
+ # @param [String] parent
100
+ # Required. The name of the project and its location that should own the process,
101
+ # run, and lineage event.
102
+ # @param [String] request_id
103
+ # A unique identifier for this request. Restricted to 36 ASCII characters. A
104
+ # random UUID is recommended. This request is idempotent only if a `request_id`
105
+ # is provided.
106
+ # @param [String] fields
107
+ # Selector specifying which fields to include in a partial response.
108
+ # @param [String] quota_user
109
+ # Available to use for quota purposes for server-side applications. Can be any
110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
111
+ # @param [Google::Apis::RequestOptions] options
112
+ # Request-specific options
113
+ #
114
+ # @yield [result, err] Result & error if block supplied
115
+ # @yieldparam result [Google::Apis::DatalineageV1::GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse] parsed result object
116
+ # @yieldparam err [StandardError] error object if request failed
117
+ #
118
+ # @return [Google::Apis::DatalineageV1::GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse]
119
+ #
120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
123
+ def process_project_location_open_lineage_run_event(parent, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
124
+ command = make_simple_command(:post, 'v1/{+parent}:processOpenLineageRunEvent', options)
125
+ command.response_representation = Google::Apis::DatalineageV1::GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse::Representation
126
+ command.response_class = Google::Apis::DatalineageV1::GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
127
+ command.params['parent'] = parent unless parent.nil?
128
+ command.query['requestId'] = request_id unless request_id.nil?
129
+ command.query['fields'] = fields unless fields.nil?
130
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
131
+ execute_or_queue_command(command, &block)
132
+ end
133
+
93
134
  # Retrieve a list of links connected to a specific asset. Links represent the
94
135
  # data flow between **source** (upstream) and **target** (downstream) assets in
95
136
  # transformation pipelines. Links are stored in the same project as the Lineage
@@ -134,8 +175,8 @@ module Google
134
175
  # Clients can use Operations.GetOperation or other methods to check whether the
135
176
  # cancellation succeeded or whether the operation completed despite cancellation.
136
177
  # On successful cancellation, the operation is not deleted; instead, it becomes
137
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
138
- # corresponding to `Code.CANCELLED`.
178
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
179
+ # , corresponding to `Code.CANCELLED`.
139
180
  # @param [String] name
140
181
  # The name of the operation resource to be cancelled.
141
182
  # @param [Google::Apis::DatalineageV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-datalineage_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-05-28 00:00:00.000000000 Z
10
+ date: 2025-01-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.11.0
18
+ version: 0.15.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.11.0
28
+ version: 0.15.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datalineage_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-datalineage_v1/v0.3.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-datalineage_v1/v0.5.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datalineage_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -68,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
66
  requirements:
69
67
  - - ">="
70
68
  - !ruby/object:Gem::Version
71
- version: '2.5'
69
+ version: '2.7'
72
70
  required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  requirements:
74
72
  - - ">="
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.4.2
79
- signing_key:
76
+ rubygems_version: 3.6.2
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Data Lineage API V1
82
79
  test_files: []