module Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Paths

Path helper methods for the DataLabelingService API.

Public Instance Methods

annotated_dataset_path(project:, dataset:, annotated_dataset: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified AnnotatedDataset resource string.

The resource will be in the following format:

`projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`

@param project [String] @param dataset [String] @param annotated_dataset [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 39
def annotated_dataset_path project:, dataset:, annotated_dataset:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"

  "projects/#{project}/datasets/#{dataset}/annotatedDatasets/#{annotated_dataset}"
end
annotation_spec_set_path(project:, annotation_spec_set: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified AnnotationSpecSet resource string.

The resource will be in the following format:

`projects/{project}/annotationSpecSets/{annotation_spec_set}`

@param project [String] @param annotation_spec_set [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 57
def annotation_spec_set_path project:, annotation_spec_set:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/annotationSpecSets/#{annotation_spec_set}"
end
data_item_path(project:, dataset:, data_item: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified DataItem resource string.

The resource will be in the following format:

`projects/{project}/datasets/{dataset}/dataItems/{data_item}`

@param project [String] @param dataset [String] @param data_item [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 75
def data_item_path project:, dataset:, data_item:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"

  "projects/#{project}/datasets/#{dataset}/dataItems/#{data_item}"
end
dataset_path(project:, dataset: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Dataset resource string.

The resource will be in the following format:

`projects/{project}/datasets/{dataset}`

@param project [String] @param dataset [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 93
def dataset_path project:, dataset:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/datasets/#{dataset}"
end
evaluation_job_path(project:, evaluation_job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified EvaluationJob resource string.

The resource will be in the following format:

`projects/{project}/evaluationJobs/{evaluation_job}`

@param project [String] @param evaluation_job [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 129
def evaluation_job_path project:, evaluation_job:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/evaluationJobs/#{evaluation_job}"
end
evaluation_path(project:, dataset:, evaluation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Evaluation resource string.

The resource will be in the following format:

`projects/{project}/datasets/{dataset}/evaluations/{evaluation}`

@param project [String] @param dataset [String] @param evaluation [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 111
def evaluation_path project:, dataset:, evaluation:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"

  "projects/#{project}/datasets/#{dataset}/evaluations/#{evaluation}"
end
example_path(project:, dataset:, annotated_dataset:, example: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Example resource string.

The resource will be in the following format:

`projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}/examples/{example}`

@param project [String] @param dataset [String] @param annotated_dataset [String] @param example [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 148
def example_path project:, dataset:, annotated_dataset:, example:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
  raise ::ArgumentError, "annotated_dataset cannot contain /" if annotated_dataset.to_s.include? "/"

  "projects/#{project}/datasets/#{dataset}/annotatedDatasets/#{annotated_dataset}/examples/#{example}"
end
instruction_path(project:, instruction: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Instruction resource string.

The resource will be in the following format:

`projects/{project}/instructions/{instruction}`

@param project [String] @param instruction [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 167
def instruction_path project:, instruction:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/instructions/#{instruction}"
end
project_path(project: "projects/ click to toggle source

Create a fully-qualified Project resource string.

The resource will be in the following format:

`projects/{project}`

@param project [String]

@return [::String]

# File lib/google/cloud/data_labeling/v1beta1/data_labeling_service/paths.rb, line 183
def project_path project:
  "projects/#{project}"
end