Module: Google::Cloud::Dataplex::V1::DataScanService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/dataplex/v1/data_scan_service/paths.rb
Overview
Path helper methods for the DataScanService API.
Instance Method Summary collapse
-
#data_scan_job_path(project:, location:, data_scan:, job:) ⇒ ::String
Create a fully-qualified DataScanJob resource string.
-
#data_scan_path(project:, location:, data_scan:) ⇒ ::String
Create a fully-qualified DataScan resource string.
-
#entity_path(project:, location:, lake:, zone:, entity:) ⇒ ::String
Create a fully-qualified Entity resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
Instance Method Details
#data_scan_job_path(project:, location:, data_scan:, job:) ⇒ ::String
Create a fully-qualified DataScanJob resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dataScans/{data_scan}/jobs/{job}
59 60 61 62 63 64 65 |
# File 'lib/google/cloud/dataplex/v1/data_scan_service/paths.rb', line 59 def data_scan_job_path project:, location:, data_scan:, job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "data_scan cannot contain /" if data_scan.to_s.include? "/" "projects/#{project}/locations/#{location}/dataScans/#{data_scan}/jobs/#{job}" end |
#data_scan_path(project:, location:, data_scan:) ⇒ ::String
Create a fully-qualified DataScan resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dataScans/{data_scan}
39 40 41 42 43 44 |
# File 'lib/google/cloud/dataplex/v1/data_scan_service/paths.rb', line 39 def data_scan_path project:, location:, data_scan: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/dataScans/#{data_scan}" end |
#entity_path(project:, location:, lake:, zone:, entity:) ⇒ ::String
Create a fully-qualified Entity resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}
81 82 83 84 85 86 87 88 |
# File 'lib/google/cloud/dataplex/v1/data_scan_service/paths.rb', line 81 def entity_path project:, location:, lake:, zone:, entity: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/" raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/" "projects/#{project}/locations/#{location}/lakes/#{lake}/zones/#{zone}/entities/#{entity}" 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}
101 102 103 104 105 |
# File 'lib/google/cloud/dataplex/v1/data_scan_service/paths.rb', line 101 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |