API Gateway V1 API - Module Google::Cloud::ApiGateway::V1::ApiGatewayService::Paths (v0.6.0)

Reference documentation and code samples for the API Gateway V1 API module Google::Cloud::ApiGateway::V1::ApiGatewayService::Paths.

Path helper methods for the ApiGatewayService API.

Methods

#api_config_path

def api_config_path(project:, api:, api_config:) -> ::String

Create a fully-qualified ApiConfig resource string.

The resource will be in the following format:

projects/{project}/locations/global/apis/{api}/configs/{api_config}

Parameters
  • project (String)
  • api (String)
  • api_config (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#api_path

def api_path(project:, api:) -> ::String

Create a fully-qualified Api resource string.

The resource will be in the following format:

projects/{project}/locations/global/apis/{api}

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

#gateway_path

def gateway_path(project:, location:, gateway:) -> ::String

Create a fully-qualified Gateway resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/gateways/{gateway}

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

#managed_service_path

def managed_service_path(service:) -> ::String

Create a fully-qualified ManagedService resource string.

The resource will be in the following format:

services/{service}

Parameter
  • service (String)
Returns
  • (::String)

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

#service_path

def service_path(service:, config:) -> ::String

Create a fully-qualified Service resource string.

The resource will be in the following format:

services/{service}/configs/{config}

Parameters
  • service (String)
  • config (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)