google-cloud-data_catalog-lineage-v1 0.a → 0.2.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 +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,115 @@
|
|
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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DataCatalog
|
23
|
+
module Lineage
|
24
|
+
module V1
|
25
|
+
module Lineage
|
26
|
+
# Path helper methods for the Lineage API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified LineageEvent resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param process [String]
|
38
|
+
# @param run [String]
|
39
|
+
# @param lineage_event [String]
|
40
|
+
#
|
41
|
+
# @return [::String]
|
42
|
+
def lineage_event_path project:, location:, process:, run:, lineage_event:
|
43
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
44
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
45
|
+
raise ::ArgumentError, "process cannot contain /" if process.to_s.include? "/"
|
46
|
+
raise ::ArgumentError, "run cannot contain /" if run.to_s.include? "/"
|
47
|
+
|
48
|
+
"projects/#{project}/locations/#{location}/processes/#{process}/runs/#{run}/lineageEvents/#{lineage_event}"
|
49
|
+
end
|
50
|
+
|
51
|
+
##
|
52
|
+
# Create a fully-qualified Location resource string.
|
53
|
+
#
|
54
|
+
# The resource will be in the following format:
|
55
|
+
#
|
56
|
+
# `projects/{project}/locations/{location}`
|
57
|
+
#
|
58
|
+
# @param project [String]
|
59
|
+
# @param location [String]
|
60
|
+
#
|
61
|
+
# @return [::String]
|
62
|
+
def location_path project:, location:
|
63
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
64
|
+
|
65
|
+
"projects/#{project}/locations/#{location}"
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Create a fully-qualified Process resource string.
|
70
|
+
#
|
71
|
+
# The resource will be in the following format:
|
72
|
+
#
|
73
|
+
# `projects/{project}/locations/{location}/processes/{process}`
|
74
|
+
#
|
75
|
+
# @param project [String]
|
76
|
+
# @param location [String]
|
77
|
+
# @param process [String]
|
78
|
+
#
|
79
|
+
# @return [::String]
|
80
|
+
def process_path project:, location:, process:
|
81
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
82
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
83
|
+
|
84
|
+
"projects/#{project}/locations/#{location}/processes/#{process}"
|
85
|
+
end
|
86
|
+
|
87
|
+
##
|
88
|
+
# Create a fully-qualified Run resource string.
|
89
|
+
#
|
90
|
+
# The resource will be in the following format:
|
91
|
+
#
|
92
|
+
# `projects/{project}/locations/{location}/processes/{process}/runs/{run}`
|
93
|
+
#
|
94
|
+
# @param project [String]
|
95
|
+
# @param location [String]
|
96
|
+
# @param process [String]
|
97
|
+
# @param run [String]
|
98
|
+
#
|
99
|
+
# @return [::String]
|
100
|
+
def run_path project:, location:, process:, run:
|
101
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
103
|
+
raise ::ArgumentError, "process cannot contain /" if process.to_s.include? "/"
|
104
|
+
|
105
|
+
"projects/#{project}/locations/#{location}/processes/#{process}/runs/#{run}"
|
106
|
+
end
|
107
|
+
|
108
|
+
extend self
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|