Module: Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Paths

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

Overview

Path helper methods for the ReasoningEngineExecutionService API.

Instance Method Summary collapse

Instance Method Details

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


39
40
41
42
43
44
# File 'lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/paths.rb', line 39

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