Cloud Build V1 API - Module Google::Cloud::Build::V1::CloudBuild::Paths (v0.12.0)

Reference documentation and code samples for the Cloud Build V1 API module Google::Cloud::Build::V1::CloudBuild::Paths.

Path helper methods for the CloudBuild API.

Methods

#build_path

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

Create a fully-qualified Build resource string.

Overloads
def build_path(project:, build:) -> ::String
The resource will be in the following format:

projects/{project}/builds/{build}

Parameters
  • project (String)
  • build (String)
def build_path(project:, location:, build:) -> ::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)

#build_trigger_path

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

Create a fully-qualified BuildTrigger resource string.

Overloads
def build_trigger_path(project:, trigger:) -> ::String
The resource will be in the following format:

projects/{project}/triggers/{trigger}

Parameters
  • project (String)
  • trigger (String)
def build_trigger_path(project:, location:, trigger:) -> ::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)

#crypto_key_path

def crypto_key_path(project:, location:, keyring:, key:) -> ::String

Create a fully-qualified CryptoKey resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}

Parameters
  • project (String)
  • location (String)
  • keyring (String)
  • key (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)

#network_path

def network_path(project:, network:) -> ::String

Create a fully-qualified Network resource string.

The resource will be in the following format:

projects/{project}/global/networks/{network}

Parameters
  • project (String)
  • network (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#project_path

def project_path(project:) -> ::String

Create a fully-qualified Project resource string.

The resource will be in the following format:

projects/{project}

Parameter
  • project (String)
Returns
  • (::String)

#secret_version_path

def secret_version_path(project:, secret:, version:) -> ::String

Create a fully-qualified SecretVersion resource string.

The resource will be in the following format:

projects/{project}/secrets/{secret}/versions/{version}

Parameters
  • project (String)
  • secret (String)
  • version (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#service_account_path

def service_account_path(project:, service_account:) -> ::String

Create a fully-qualified ServiceAccount resource string.

The resource will be in the following format:

projects/{project}/serviceAccounts/{service_account}

Parameters
  • project (String)
  • service_account (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#subscription_path

def subscription_path(project:, subscription:) -> ::String

Create a fully-qualified Subscription resource string.

The resource will be in the following format:

projects/{project}/subscriptions/{subscription}

Parameters
  • project (String)
  • subscription (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)

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