Method: Google::Cloud::DiscoveryEngine::V1::DataStoreService::Paths#document_processing_config_path
- Defined in:
- lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb
#document_processing_config_path(project: , location: , data_store: ) ⇒ ::String #document_processing_config_path(project: , location: , collection: , data_store: ) ⇒ ::String
Create a fully-qualified DocumentProcessingConfig resource string.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb', line 114 def document_processing_config_path **args resources = { "data_store:location:project" => (proc do |project:, location:, data_store:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/dataStores/#{data_store}/documentProcessingConfig" end), "collection:data_store:location:project" => (proc do |project:, location:, collection:, data_store:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/" "projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}/documentProcessingConfig" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |