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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/data_catalog/lineage/v1/lineage/client.rb +1971 -0
  6. data/lib/google/cloud/data_catalog/lineage/v1/lineage/credentials.rb +49 -0
  7. data/lib/google/cloud/data_catalog/lineage/v1/lineage/operations.rb +770 -0
  8. data/lib/google/cloud/data_catalog/lineage/v1/lineage/paths.rb +115 -0
  9. data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/client.rb +1549 -0
  10. data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/operations.rb +795 -0
  11. data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest/service_stub.rb +1001 -0
  12. data/lib/google/cloud/data_catalog/lineage/v1/lineage/rest.rb +58 -0
  13. data/lib/google/cloud/data_catalog/lineage/v1/lineage.rb +61 -0
  14. data/lib/google/cloud/data_catalog/lineage/v1/rest.rb +39 -0
  15. data/lib/google/cloud/data_catalog/lineage/v1/version.rb +7 -2
  16. data/lib/google/cloud/data_catalog/lineage/v1.rb +47 -0
  17. data/lib/google/cloud/datacatalog/lineage/v1/lineage_pb.rb +241 -0
  18. data/lib/google/cloud/datacatalog/lineage/v1/lineage_services_pb.rb +104 -0
  19. data/lib/google-cloud-data_catalog-lineage-v1.rb +21 -0
  20. data/proto_docs/README.md +4 -0
  21. data/proto_docs/google/api/client.rb +318 -0
  22. data/proto_docs/google/api/field_behavior.rb +71 -0
  23. data/proto_docs/google/api/launch_stage.rb +71 -0
  24. data/proto_docs/google/api/resource.rb +222 -0
  25. data/proto_docs/google/cloud/datacatalog/lineage/v1/lineage.rb +707 -0
  26. data/proto_docs/google/longrunning/operations.rb +164 -0
  27. data/proto_docs/google/protobuf/any.rb +141 -0
  28. data/proto_docs/google/protobuf/duration.rb +98 -0
  29. data/proto_docs/google/protobuf/empty.rb +34 -0
  30. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  31. data/proto_docs/google/protobuf/struct.rb +96 -0
  32. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  33. data/proto_docs/google/rpc/status.rb +48 -0
  34. 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