Module: Google::Cloud::Bigquery::DataExchange::V1beta1::AnalyticsHubService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/paths.rb
Overview
Path helper methods for the AnalyticsHubService API.
Instance Method Summary collapse
-
#data_exchange_path(project:, location:, data_exchange:) ⇒ ::String
Create a fully-qualified DataExchange resource string.
-
#dataset_path(project:, dataset:) ⇒ ::String
Create a fully-qualified Dataset resource string.
-
#listing_path(project:, location:, data_exchange:, listing:) ⇒ ::String
Create a fully-qualified Listing resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
Instance Method Details
#data_exchange_path(project:, location:, data_exchange:) ⇒ ::String
Create a fully-qualified DataExchange resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dataExchanges/{data_exchange}
40 41 42 43 44 45 |
# File 'lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/paths.rb', line 40 def data_exchange_path project:, location:, data_exchange: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/dataExchanges/#{data_exchange}" end |
#dataset_path(project:, dataset:) ⇒ ::String
Create a fully-qualified Dataset resource string.
The resource will be in the following format:
projects/{project}/datasets/{dataset}
58 59 60 61 62 |
# File 'lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/paths.rb', line 58 def dataset_path project:, dataset: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/datasets/#{dataset}" end |
#listing_path(project:, location:, data_exchange:, listing:) ⇒ ::String
Create a fully-qualified Listing resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}
77 78 79 80 81 82 83 |
# File 'lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/paths.rb', line 77 def listing_path project:, location:, data_exchange:, listing: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "data_exchange cannot contain /" if data_exchange.to_s.include? "/" "projects/#{project}/locations/#{location}/dataExchanges/#{data_exchange}/listings/#{listing}" 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}
96 97 98 99 100 |
# File 'lib/google/cloud/bigquery/data_exchange/v1beta1/analytics_hub_service/paths.rb', line 96 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |