Module: Google::Cloud::DataCatalog::Lineage::V1::Lineage::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/data_catalog/lineage/v1/lineage/paths.rb
Overview
Path helper methods for the Lineage API.
Instance Method Summary collapse
-
#lineage_event_path(project:, location:, process:, run:, lineage_event:) ⇒ ::String
Create a fully-qualified LineageEvent resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#process_path(project:, location:, process:) ⇒ ::String
Create a fully-qualified Process resource string.
-
#run_path(project:, location:, process:, run:) ⇒ ::String
Create a fully-qualified Run resource string.
Instance Method Details
#lineage_event_path(project:, location:, process:, run:, lineage_event:) ⇒ ::String
Create a fully-qualified LineageEvent resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}
42 43 44 45 46 47 48 49 |
# File 'lib/google/cloud/data_catalog/lineage/v1/lineage/paths.rb', line 42 def lineage_event_path project:, location:, process:, run:, lineage_event: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "process cannot contain /" if process.to_s.include? "/" raise ::ArgumentError, "run cannot contain /" if run.to_s.include? "/" "projects/#{project}/locations/#{location}/processes/#{process}/runs/#{run}/lineageEvents/#{lineage_event}" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
62 63 64 65 66 |
# File 'lib/google/cloud/data_catalog/lineage/v1/lineage/paths.rb', line 62 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#process_path(project:, location:, process:) ⇒ ::String
Create a fully-qualified Process resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/processes/{process}
80 81 82 83 84 85 |
# File 'lib/google/cloud/data_catalog/lineage/v1/lineage/paths.rb', line 80 def process_path project:, location:, process: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/processes/#{process}" end |
#run_path(project:, location:, process:, run:) ⇒ ::String
Create a fully-qualified Run resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/processes/{process}/runs/{run}
100 101 102 103 104 105 106 |
# File 'lib/google/cloud/data_catalog/lineage/v1/lineage/paths.rb', line 100 def run_path project:, location:, process:, run: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "process cannot contain /" if process.to_s.include? "/" "projects/#{project}/locations/#{location}/processes/#{process}/runs/#{run}" end |