Infrastructure Manager V1 API - Module Google::Cloud::ConfigService::V1::Config::Paths (v1.0.0)

Reference documentation and code samples for the Infrastructure Manager V1 API module Google::Cloud::ConfigService::V1::Config::Paths.

Path helper methods for the Config API.

Methods

#deployment_path

def deployment_path(project:, location:, deployment:) -> ::String

Create a fully-qualified Deployment resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/deployments/{deployment}

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

#preview_path

def preview_path(project:, location:, preview:) -> ::String

Create a fully-qualified Preview resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/previews/{preview}

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

#resource_path

def resource_path(project:, location:, deployment:, revision:, resource:) -> ::String

Create a fully-qualified Resource resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}

Parameters
  • project (String)
  • location (String)
  • deployment (String)
  • revision (String)
  • resource (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#revision_path

def revision_path(project:, location:, deployment:, revision:) -> ::String

Create a fully-qualified Revision resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}

Parameters
  • project (String)
  • location (String)
  • deployment (String)
  • revision (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)

#terraform_version_path

def terraform_version_path(project:, location:, terraform_version:) -> ::String

Create a fully-qualified TerraformVersion resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/terraformVersions/{terraform_version}

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