module Google::Cloud::Bigquery::Storage::V1::BigQueryRead::Paths

Path helper methods for the BigQueryRead API.

Public Instance Methods

project_path(project: "projects/ click to toggle source

Create a fully-qualified Project resource string.

The resource will be in the following format:

`projects/{project}`

@param project [String]

@return [::String]

# File lib/google/cloud/bigquery/storage/v1/big_query_read/paths.rb, line 38
def project_path project:
  "projects/#{project}"
end
read_session_path(project:, location:, session: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified ReadSession resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/sessions/{session}`

@param project [String] @param location [String] @param session [String]

@return [::String]

# File lib/google/cloud/bigquery/storage/v1/big_query_read/paths.rb, line 54
def read_session_path project:, location:, session:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/sessions/#{session}"
end
read_stream_path(project:, location:, session:, stream: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified ReadStream resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/sessions/{session}/streams/{stream}`

@param project [String] @param location [String] @param session [String] @param stream [String]

@return [::String]

# File lib/google/cloud/bigquery/storage/v1/big_query_read/paths.rb, line 74
def read_stream_path project:, location:, session:, stream:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"

  "projects/#{project}/locations/#{location}/sessions/#{session}/streams/#{stream}"
end
table_path(project:, dataset:, table: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Table resource string.

The resource will be in the following format:

`projects/{project}/datasets/{dataset}/tables/{table}`

@param project [String] @param dataset [String] @param table [String]

@return [::String]

# File lib/google/cloud/bigquery/storage/v1/big_query_read/paths.rb, line 94
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