Network Connectivity V1 API - Module Google::Cloud::NetworkConnectivity::V1::CrossNetworkAutomationService::Paths (v1.4.0)

Reference documentation and code samples for the Network Connectivity V1 API module Google::Cloud::NetworkConnectivity::V1::CrossNetworkAutomationService::Paths.

Path helper methods for the CrossNetworkAutomationService API.

Methods

#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:, resource_id:) -> ::String

Create a fully-qualified Network resource string.

The resource will be in the following format:

projects/{project}/global/networks/{resource_id}

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

#service_attachment_path

def service_attachment_path(project:, region:, service_attachment:) -> ::String

Create a fully-qualified ServiceAttachment resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/serviceAttachments/{service_attachment}

Parameters
  • project (String)
  • region (String)
  • service_attachment (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#service_class_path

def service_class_path(project:, location:, service_class:) -> ::String

Create a fully-qualified ServiceClass resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/serviceClasses/{service_class}

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

#service_connection_map_path

def service_connection_map_path(project:, location:, service_connection_map:) -> ::String

Create a fully-qualified ServiceConnectionMap resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map}

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

#service_connection_policy_path

def service_connection_policy_path(project:, location:, service_connection_policy:) -> ::String

Create a fully-qualified ServiceConnectionPolicy resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy}

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

#service_connection_token_path

def service_connection_token_path(project:, location:, service_connection_token:) -> ::String

Create a fully-qualified ServiceConnectionToken resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/serviceConnectionTokens/{service_connection_token}

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

#subnetwork_path

def subnetwork_path(project:, region:, subnetwork:) -> ::String

Create a fully-qualified Subnetwork resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/subnetworks/{subnetwork}

Parameters
  • project (String)
  • region (String)
  • subnetwork (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)