Module: Google::Cloud::Dataplex::V1::DataProductService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/dataplex/v1/data_product_service/paths.rb
Overview
Path helper methods for the DataProductService API.
Instance Method Summary collapse
-
#change_request_path(project:, location:, change_request:) ⇒ ::String
Create a fully-qualified ChangeRequest resource string.
-
#data_asset_path(project:, location:, data_product:, data_asset:) ⇒ ::String
Create a fully-qualified DataAsset resource string.
-
#data_product_path(project:, location:, data_product:) ⇒ ::String
Create a fully-qualified DataProduct resource string.
-
#entry_group_path(project:, location:, entry_group:) ⇒ ::String
Create a fully-qualified EntryGroup resource string.
-
#entry_link_path(project:, location:, entry_group:, entry_link:) ⇒ ::String
Create a fully-qualified EntryLink resource string.
-
#entry_path(project:, location:, entry_group:, entry:) ⇒ ::String
Create a fully-qualified Entry resource string.
-
#glossary_category_path(project:, location:, glossary:, glossary_category:) ⇒ ::String
Create a fully-qualified GlossaryCategory resource string.
-
#glossary_path(project:, location:, glossary:) ⇒ ::String
Create a fully-qualified Glossary resource string.
-
#glossary_term_path(project:, location:, glossary:, glossary_term:) ⇒ ::String
Create a fully-qualified GlossaryTerm resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
Instance Method Details
#change_request_path(project:, location:, change_request:) ⇒ ::String
Create a fully-qualified ChangeRequest resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/changeRequests/{change_request}
39 40 41 42 43 44 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 39 def change_request_path project:, location:, change_request: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/changeRequests/#{change_request}" end |
#data_asset_path(project:, location:, data_product:, data_asset:) ⇒ ::String
Create a fully-qualified DataAsset resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}
59 60 61 62 63 64 65 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 59 def data_asset_path project:, location:, data_product:, data_asset: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "data_product cannot contain /" if data_product.to_s.include? "/" "projects/#{project}/locations/#{location}/dataProducts/#{data_product}/dataAssets/#{data_asset}" end |
#data_product_path(project:, location:, data_product:) ⇒ ::String
Create a fully-qualified DataProduct resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dataProducts/{data_product}
79 80 81 82 83 84 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 79 def data_product_path project:, location:, data_product: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/dataProducts/#{data_product}" 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}
119 120 121 122 123 124 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 119 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_link_path(project:, location:, entry_group:, entry_link:) ⇒ ::String
Create a fully-qualified EntryLink resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}
139 140 141 142 143 144 145 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 139 def entry_link_path project:, location:, entry_group:, entry_link: 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}/entryLinks/#{entry_link}" 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}
99 100 101 102 103 104 105 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 99 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 |
#glossary_category_path(project:, location:, glossary:, glossary_category:) ⇒ ::String
Create a fully-qualified GlossaryCategory resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}
179 180 181 182 183 184 185 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 179 def glossary_category_path project:, location:, glossary:, glossary_category: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "glossary cannot contain /" if glossary.to_s.include? "/" "projects/#{project}/locations/#{location}/glossaries/#{glossary}/categories/#{glossary_category}" end |
#glossary_path(project:, location:, glossary:) ⇒ ::String
Create a fully-qualified Glossary resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/glossaries/{glossary}
159 160 161 162 163 164 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 159 def glossary_path project:, location:, glossary: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/glossaries/#{glossary}" end |
#glossary_term_path(project:, location:, glossary:, glossary_term:) ⇒ ::String
Create a fully-qualified GlossaryTerm resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}
200 201 202 203 204 205 206 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 200 def glossary_term_path project:, location:, glossary:, glossary_term: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "glossary cannot contain /" if glossary.to_s.include? "/" "projects/#{project}/locations/#{location}/glossaries/#{glossary}/terms/#{glossary_term}" 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}
219 220 221 222 223 |
# File 'lib/google/cloud/dataplex/v1/data_product_service/paths.rb', line 219 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |