Cloud FTP V1 API - Module Google::Cloud::Ftp::V1::CloudFtp::Paths (v0.1.1)

Reference documentation and code samples for the Cloud FTP V1 API module Google::Cloud::Ftp::V1::CloudFtp::Paths.

Path helper methods for the CloudFtp 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)

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

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

#server_path

def server_path(project:, location:, server:) -> ::String

Create a fully-qualified Server resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/servers/{server}

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

#user_path

def user_path(project:, location:, server:, user:) -> ::String

Create a fully-qualified User resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/servers/{server}/users/{user}

Parameters
  • project (String)
  • location (String)
  • server (String)
  • user (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)