Memorystore V1BETA API - Module Google::Cloud::Memorystore::V1beta::Memorystore::Paths (v0.1.0)

Reference documentation and code samples for the Memorystore V1BETA API module Google::Cloud::Memorystore::V1beta::Memorystore::Paths.

Path helper methods for the Memorystore API.

Methods

#forwarding_rule_path

def forwarding_rule_path(project:, region:, forwarding_rule:) -> ::String

Create a fully-qualified ForwardingRule resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}

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

#instance_path

def instance_path(project:, location:, instance:) -> ::String

Create a fully-qualified Instance resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/instances/{instance}

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

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