Module: Google::Cloud::Dataplex::V1::CatalogService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/dataplex/v1/catalog_service/paths.rb
Overview
Path helper methods for the CatalogService API.
Instance Method Summary collapse
-
#aspect_type_path(project:, location:, aspect_type:) ⇒ ::String
Create a fully-qualified AspectType resource string.
-
#entry_group_path(project:, location:, entry_group:) ⇒ ::String
Create a fully-qualified EntryGroup resource string.
-
#entry_path(project:, location:, entry_group:, entry:) ⇒ ::String
Create a fully-qualified Entry resource string.
-
#entry_type_path(project:, location:, entry_type:) ⇒ ::String
Create a fully-qualified EntryType resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
Instance Method Details
#aspect_type_path(project:, location:, aspect_type:) ⇒ ::String
Create a fully-qualified AspectType resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/aspectTypes/{aspect_type}
39 40 41 42 43 44 |
# File 'lib/google/cloud/dataplex/v1/catalog_service/paths.rb', line 39 def aspect_type_path project:, location:, aspect_type: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/aspectTypes/#{aspect_type}" end |
#entry_group_path(project:, location:, entry_group:) ⇒ ::String
Create a fully-qualified EntryGroup resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/entryGroups/{entry_group}
79 80 81 82 83 84 |
# File 'lib/google/cloud/dataplex/v1/catalog_service/paths.rb', line 79 def entry_group_path project:, location:, entry_group: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/entryGroups/#{entry_group}" end |
#entry_path(project:, location:, entry_group:, entry:) ⇒ ::String
Create a fully-qualified Entry resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}
59 60 61 62 63 64 65 |
# File 'lib/google/cloud/dataplex/v1/catalog_service/paths.rb', line 59 def entry_path project:, location:, entry_group:, entry: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "entry_group cannot contain /" if entry_group.to_s.include? "/" "projects/#{project}/locations/#{location}/entryGroups/#{entry_group}/entries/#{entry}" end |
#entry_type_path(project:, location:, entry_type:) ⇒ ::String
Create a fully-qualified EntryType resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/entryTypes/{entry_type}
98 99 100 101 102 103 |
# File 'lib/google/cloud/dataplex/v1/catalog_service/paths.rb', line 98 def entry_type_path project:, location:, entry_type: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/entryTypes/#{entry_type}" 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}
116 117 118 119 120 |
# File 'lib/google/cloud/dataplex/v1/catalog_service/paths.rb', line 116 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |