Module: Google::Cloud::DiscoveryEngine::V1beta::GroundedGenerationService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb

Overview

Path helper methods for the GroundedGenerationService API.

Instance Method Summary collapse

Instance Method Details

#grounding_config_path(project:, location:, grounding_config:) ⇒ ::String

Create a fully-qualified GroundingConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/groundingConfigs/{grounding_config}

Parameters:

  • project (String)
  • location (String)
  • grounding_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


39
40
41
42
43
44
# File 'lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb', line 39

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

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