Module: Google::Cloud::AIPlatform::V1::SessionService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/ai_platform/v1/session_service/paths.rb
Overview
Path helper methods for the SessionService API.
Instance Method Summary collapse
-
#reasoning_engine_path(project:, location:, reasoning_engine:) ⇒ ::String
Create a fully-qualified ReasoningEngine resource string.
-
#session_event_path(project:, location:, reasoning_engine:, session:, event:) ⇒ ::String
Create a fully-qualified SessionEvent resource string.
-
#session_path(project:, location:, reasoning_engine:, session:) ⇒ ::String
Create a fully-qualified Session resource string.
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}
39 40 41 42 43 44 |
# File 'lib/google/cloud/ai_platform/v1/session_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 |
#session_event_path(project:, location:, reasoning_engine:, session:, event:) ⇒ ::String
Create a fully-qualified SessionEvent resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}
81 82 83 84 85 86 87 88 |
# File 'lib/google/cloud/ai_platform/v1/session_service/paths.rb', line 81 def session_event_path project:, location:, reasoning_engine:, session:, event: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "reasoning_engine cannot contain /" if reasoning_engine.to_s.include? "/" raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/" "projects/#{project}/locations/#{location}/reasoningEngines/#{reasoning_engine}/sessions/#{session}/events/#{event}" end |
#session_path(project:, location:, reasoning_engine:, session:) ⇒ ::String
Create a fully-qualified Session resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}
59 60 61 62 63 64 65 |
# File 'lib/google/cloud/ai_platform/v1/session_service/paths.rb', line 59 def session_path project:, location:, reasoning_engine:, session: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "reasoning_engine cannot contain /" if reasoning_engine.to_s.include? "/" "projects/#{project}/locations/#{location}/reasoningEngines/#{reasoning_engine}/sessions/#{session}" end |