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
-
#git_repository_link_path(project:, location:, connection:, git_repository_link:) ⇒ ::String
Create a fully-qualified GitRepositoryLink resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#network_attachment_path(project:, region:, networkattachment:) ⇒ ::String
Create a fully-qualified NetworkAttachment resource string.
-
#reasoning_engine_path(project:, location:, reasoning_engine:) ⇒ ::String
Create a fully-qualified ReasoningEngine resource string.
Instance Method Details
#git_repository_link_path(project:, location:, connection:, git_repository_link:) ⇒ ::String
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}
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}
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}
77 78 79 80 81 82 |
# File 'lib/google/cloud/ai_platform/v1/reasoning_engine_service/paths.rb', line 77 def 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}
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 |