API hub V1 API - Module Google::Cloud::ApiHub::V1::ApiHub::Paths (v0.2.0)

Reference documentation and code samples for the API hub V1 API module Google::Cloud::ApiHub::V1::ApiHub::Paths.

Path helper methods for the ApiHub API.

Methods

#api_operation_path

def api_operation_path(project:, location:, api:, version:, operation:) -> ::String

Create a fully-qualified ApiOperation resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}

Parameters
  • project (String)
  • location (String)
  • api (String)
  • version (String)
  • operation (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#api_path

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

Create a fully-qualified Api resource string.

The resource will be in the following format:

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

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

#attribute_path

def attribute_path(project:, location:, attribute:) -> ::String

Create a fully-qualified Attribute resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/attributes/{attribute}

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

#definition_path

def definition_path(project:, location:, api:, version:, definition:) -> ::String

Create a fully-qualified Definition resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}

Parameters
  • project (String)
  • location (String)
  • api (String)
  • version (String)
  • definition (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

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

#external_api_path

def external_api_path(project:, location:, external_api:) -> ::String

Create a fully-qualified ExternalApi resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/externalApis/{external_api}

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

#spec_path

def spec_path(project:, location:, api:, version:, spec:) -> ::String

Create a fully-qualified Spec resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}

Parameters
  • project (String)
  • location (String)
  • api (String)
  • version (String)
  • spec (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#version_path

def version_path(project:, location:, api:, version:) -> ::String

Create a fully-qualified Version resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/apis/{api}/versions/{version}

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