Cloud Functions V2 API - Module Google::Cloud::Functions::V2::FunctionService::Paths (v0.4.0)

Reference documentation and code samples for the Cloud Functions V2 API module Google::Cloud::Functions::V2::FunctionService::Paths.

Path helper methods for the FunctionService API.

Methods

#build_path

def build_path(project:, location:, build:) -> ::String

Create a fully-qualified Build resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/builds/{build}

Parameters
  • project (String)
  • location (String)
  • build (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#channel_path

def channel_path(project:, location:, channel:) -> ::String

Create a fully-qualified Channel resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/channels/{channel}

Parameters
  • project (String)
  • location (String)
  • channel (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#connector_path

def connector_path(project:, location:, connector:) -> ::String

Create a fully-qualified Connector resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/connectors/{connector}

Parameters
  • project (String)
  • location (String)
  • connector (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#crypto_key_path

def crypto_key_path(project:, location:, key_ring:, crypto_key:) -> ::String

Create a fully-qualified CryptoKey resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}

Parameters
  • project (String)
  • location (String)
  • key_ring (String)
  • crypto_key (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#function_path

def function_path(project:, location:, function:) -> ::String

Create a fully-qualified Function resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/functions/{function}

Parameters
  • project (String)
  • location (String)
  • function (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#location_path

def 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)

#repository_path

def repository_path(project:, location:, repository:) -> ::String

Create a fully-qualified Repository resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/repositories/{repository}

Parameters
  • project (String)
  • location (String)
  • repository (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#service_path

def service_path(project:, location:, service:) -> ::String

Create a fully-qualified Service resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/services/{service}

Parameters
  • project (String)
  • location (String)
  • service (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#topic_path

def 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)

#trigger_path

def trigger_path(project:, location:, trigger:) -> ::String

Create a fully-qualified Trigger resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/triggers/{trigger}

Parameters
  • project (String)
  • location (String)
  • trigger (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#worker_pool_path

def worker_pool_path(project:, location:, worker_pool:) -> ::String

Create a fully-qualified WorkerPool resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/workerPools/{worker_pool}

Parameters
  • project (String)
  • location (String)
  • worker_pool (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)