Module: Google::Cloud::AIPlatform::V1::ReasoningEngineService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb

Overview

Path helper methods for the ReasoningEngineService API.

Instance Method Summary collapse

Instance Method Details

Create a fully-qualified GitRepositoryLink resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}

Parameters:

  • project (String)
  • location (String)
  • connection (String)
  • git_repository_link (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


40
41
42
43
44
45
46
# File 'lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb', line 40

def git_repository_link_path project:, location:, connection:, git_repository_link:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "connection cannot contain /" if connection.to_s.include? "/"

  "projects/#{project}/locations/#{location}/connections/#{connection}/gitRepositoryLinks/#{git_repository_link}"
end

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


59
60
61
62
63
# File 'lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb', line 59

def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end

#network_attachment_path(project:, region:, networkattachment:) ⇒ ::String

Create a fully-qualified NetworkAttachment resource string.

The resource will be in the following format:

projects/{project}/regions/{region}/networkAttachments/{networkattachment}

Parameters:

  • project (String)
  • region (String)
  • networkattachment (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


77
78
79
80
81
82
# File 'lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb', line 77

def network_attachment_path project:, region:, networkattachment:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"

  "projects/#{project}/regions/#{region}/networkAttachments/#{networkattachment}"
end

#reasoning_engine_path(project:, location:, reasoning_engine:) ⇒ ::String

Create a fully-qualified ReasoningEngine resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

Parameters:

  • project (String)
  • location (String)
  • reasoning_engine (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


96
97
98
99
100
101
# File 'lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb', line 96

def reasoning_engine_path project:, location:, reasoning_engine:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/reasoningEngines/#{reasoning_engine}"
end