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

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}

Parameters:

  • project (String)
  • location (String)
  • data_exchange (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • dataset (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)
  • data_exchange (String)
  • listing (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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}

Parameters:

  • project (String)
  • location (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

#managed_service_path(service:) ⇒ ::String

Create a fully-qualified ManagedService resource string.

The resource will be in the following format:

services/{service}

Parameters:

  • service (String)

Returns:

  • (::String)


112
113
114
# File 'lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb', line 112

def managed_service_path service:
  "services/#{service}"
end

#query_template_path(project:, location:, data_exchange:, query_template:) ⇒ ::String

Create a fully-qualified QueryTemplate resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/dataExchanges/{data_exchange}/queryTemplates/{query_template}

Parameters:

  • project (String)
  • location (String)
  • data_exchange (String)
  • query_template (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


129
130
131
132
133
134
135
# File 'lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb', line 129

def query_template_path project:, location:, data_exchange:, query_template:
  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}/queryTemplates/#{query_template}"
end

#routine_path(project:, dataset:, routine:) ⇒ ::String

Create a fully-qualified Routine resource string.

The resource will be in the following format:

projects/{project}/datasets/{dataset}/routines/{routine}

Parameters:

  • project (String)
  • dataset (String)
  • routine (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


149
150
151
152
153
154
# File 'lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb', line 149

def routine_path project:, dataset:, routine:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"

  "projects/#{project}/datasets/#{dataset}/routines/#{routine}"
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}

Parameters:

  • project (String)
  • location (String)
  • subscription (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


168
169
170
171
172
173
# File 'lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb', line 168

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}

Parameters:

  • project (String)
  • dataset (String)
  • table (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


187
188
189
190
191
192
# File 'lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb', line 187

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

#topic_path(project:, topic:) ⇒ ::String

Create a fully-qualified Topic resource string.

The resource will be in the following format:

projects/{project}/topics/{topic}

Parameters:

  • project (String)
  • topic (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


205
206
207
208
209
# File 'lib/google/cloud/bigquery/analytics_hub/v1/analytics_hub_service/paths.rb', line 205

def topic_path project:, topic:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/topics/#{topic}"
end