Module: Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/document_ai/v1beta3/document_processor_service/paths.rb
Overview
Path helper methods for the DocumentProcessorService API.
Instance Method Summary collapse
-
#human_review_config_path(project:, location:, processor:) ⇒ ::String
Create a fully-qualified HumanReviewConfig resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#processor_path(project:, location:, processor:) ⇒ ::String
Create a fully-qualified Processor resource string.
Instance Method Details
#human_review_config_path(project:, location:, processor:) ⇒ ::String
Create a fully-qualified HumanReviewConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig
39 40 41 42 43 44 |
# 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 |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
57 58 59 60 61 |
# 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 |
#processor_path(project:, location:, processor:) ⇒ ::String
Create a fully-qualified Processor resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/processors/{processor}
75 76 77 78 79 80 |
# 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 |