module Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Paths
Path helper methods for the DocumentProcessorService
API.
Public Instance Methods
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/v1beta3/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
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/document_ai/v1beta3/document_processor_service/paths.rb, line 57 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end
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/v1beta3/document_processor_service/paths.rb, line 75 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