Module: Google::Cloud::Bigquery::AnalyticsHub::V1::AnalyticsHubService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/bigquery/analytics_hub/v1/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.
-
#subscription_path(project:, location:, subscription:) ⇒ ::String
Create a fully-qualified Subscription resource string.
-
#table_path(project:, dataset:, table:) ⇒ ::String
Create a fully-qualified Table 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/analytics_hub/v1/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/analytics_hub/v1/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/analytics_hub/v1/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/analytics_hub/v1/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 |
#subscription_path(project:, location:, subscription:) ⇒ ::String
Create a fully-qualified Subscription resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/subscriptions/{subscription}
114 115 116 117 118 119 |
# File 'lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb', line 114 def subscription_path project:, location:, subscription: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/subscriptions/#{subscription}" end |
#table_path(project:, dataset:, table:) ⇒ ::String
Create a fully-qualified Table resource string.
The resource will be in the following format:
projects/{project}/datasets/{dataset}/tables/{table}
133 134 135 136 137 138 |
# File 'lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb', line 133 def table_path project:, dataset:, table: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/" "projects/#{project}/datasets/#{dataset}/tables/#{table}" end |