module Google::Cloud::DocumentAI::V1::DocumentProcessorService::Paths

Path helper methods for the DocumentProcessorService API.

Public Instance Methods

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

Create a fully-qualified HumanReviewConfig resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig`

@param project [String] @param location [String] @param processor [String]

@return [::String]

# File lib/google/cloud/document_ai/v1/document_processor_service/paths.rb, line 39
def human_review_config_path project:, location:, processor:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/processors/#{processor}/humanReviewConfig"
end
processor_path(project:, location:, processor: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Processor resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/processors/{processor}`

@param project [String] @param location [String] @param processor [String]

@return [::String]

# File lib/google/cloud/document_ai/v1/document_processor_service/paths.rb, line 58
def processor_path project:, location:, processor:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/processors/#{processor}"
end