module Google::Cloud::AutoML::V1::AutoML::Paths
Path helper methods for the AutoMl
API.
Public Instance Methods
Create a fully-qualified AnnotationSpec resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
@param project [String] @param location [String] @param dataset [String] @param annotation_spec [String]
@return [::String]
# File lib/google/cloud/automl/v1/automl/paths.rb, line 40 def annotation_spec_path project:, location:, dataset:, annotation_spec: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/" "projects/#{project}/locations/#{location}/datasets/#{dataset}/annotationSpecs/#{annotation_spec}" end
Create a fully-qualified Dataset resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/datasets/{dataset}`
@param project [String] @param location [String] @param dataset [String]
@return [::String]
# File lib/google/cloud/automl/v1/automl/paths.rb, line 60 def dataset_path project:, location:, dataset: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/datasets/#{dataset}" end
Create a fully-qualified Location resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}`
@param project [String] @param location [String]
@return [::String]
# File lib/google/cloud/automl/v1/automl/paths.rb, line 78 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end
Create a fully-qualified ModelEvaluation resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}`
@param project [String] @param location [String] @param model [String] @param model_evaluation [String]
@return [::String]
# File lib/google/cloud/automl/v1/automl/paths.rb, line 116 def model_evaluation_path project:, location:, model:, model_evaluation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "model cannot contain /" if model.to_s.include? "/" "projects/#{project}/locations/#{location}/models/#{model}/modelEvaluations/#{model_evaluation}" end
Create a fully-qualified Model
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/models/{model}`
@param project [String] @param location [String] @param model [String]
@return [::String]
# File lib/google/cloud/automl/v1/automl/paths.rb, line 96 def model_path project:, location:, model: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/models/#{model}" end