module Google::Cloud::AutoML::V1::PredictionService::Paths

Path helper methods for the PredictionService API.

Public Instance Methods

model_path(project:, location:, model: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

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/prediction_service/paths.rb, line 39
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