Module: Google::Cloud::DiscoveryEngine::V1beta::SampleQueryService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb
Overview
Path helper methods for the SampleQueryService API.
Instance Method Summary collapse
-
#sample_query_path(project:, location:, sample_query_set:, sample_query:) ⇒ ::String
Create a fully-qualified SampleQuery resource string.
-
#sample_query_set_path(project:, location:, sample_query_set:) ⇒ ::String
Create a fully-qualified SampleQuerySet resource string.
Instance Method Details
#sample_query_path(project:, location:, sample_query_set:, sample_query:) ⇒ ::String
Create a fully-qualified SampleQuery resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb', line 40 def sample_query_path project:, location:, sample_query_set:, sample_query: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "sample_query_set cannot contain /" if sample_query_set.to_s.include? "/" "projects/#{project}/locations/#{location}/sampleQuerySets/#{sample_query_set}/sampleQueries/#{sample_query}" end |
#sample_query_set_path(project:, location:, sample_query_set:) ⇒ ::String
Create a fully-qualified SampleQuerySet resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}
60 61 62 63 64 65 |
# File 'lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb', line 60 def sample_query_set_path project:, location:, sample_query_set: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/sampleQuerySets/#{sample_query_set}" end |