module Google::Cloud::AutoML::V1beta1::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/v1beta1/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 ColumnSpec
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}/columnSpecs/{column_spec}`
@param project [String] @param location [String] @param dataset [String] @param table_spec [String] @param column_spec [String]
@return [::String]
# File lib/google/cloud/automl/v1beta1/automl/paths.rb, line 62 def column_spec_path project:, location:, dataset:, table_spec:, column_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? "/" raise ::ArgumentError, "table_spec cannot contain /" if table_spec.to_s.include? "/" "projects/#{project}/locations/#{location}/datasets/#{dataset}/tableSpecs/#{table_spec}/columnSpecs/#{column_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/v1beta1/automl/paths.rb, line 83 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/v1beta1/automl/paths.rb, line 101 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/v1beta1/automl/paths.rb, line 139 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/v1beta1/automl/paths.rb, line 119 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
Create a fully-qualified TableSpec resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/datasets/{dataset}/tableSpecs/{table_spec}`
@param project [String] @param location [String] @param dataset [String] @param table_spec [String]
@return [::String]
# File lib/google/cloud/automl/v1beta1/automl/paths.rb, line 160 def table_spec_path project:, location:, dataset:, table_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}/tableSpecs/#{table_spec}" end