module Google::Cloud::RecommendationEngine::V1beta1::UserEventService::Paths

Path helper methods for the UserEventService API.

Public Instance Methods

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

Create a fully-qualified EventStore resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}`

@param project [String] @param location [String] @param catalog [String] @param event_store [String]

@return [::String]

# File lib/google/cloud/recommendation_engine/v1beta1/user_event_service/paths.rb, line 40
def event_store_path project:, location:, catalog:, event_store:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "catalog cannot contain /" if catalog.to_s.include? "/"

  "projects/#{project}/locations/#{location}/catalogs/#{catalog}/eventStores/#{event_store}"
end